/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
Zend
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/Zend/tests/bug51822.phpt
--TEST-- Bug #51822 (Segfault with strange __destruct() for static class variables) --FILE-- <?php class DestructableObject { public function __destruct() { echo "2\n"; } } class DestructorCreator { public function __destruct() { $this->test = new DestructableObject; echo "1\n"; } } class Test { public static $mystatic; } // Uncomment this to avoid segfault //Test::$mystatic = new DestructorCreator(); $x = new Test(); if (!isset(Test::$mystatic)) Test::$mystatic = new DestructorCreator(); echo "bla\n"; ?> --EXPECT-- bla 1 2
Copyright ©2k19 -
Hexid
|
Tex7ure