mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

* Clean up closure static variable handling * Zend: Fix reference counting for Closures in const-expr Fixes php/php-src#17851 --------- Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
9 lines
115 B
PHP
9 lines
115 B
PHP
<?php
|
|
|
|
#[Attr(static function () { })]
|
|
#[Attr(static function (...$args) {
|
|
var_dump($args);
|
|
})]
|
|
class C {}
|
|
|
|
?>
|