Download src/php/php-src/Zend/tests/class_alias/bug54268.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 758 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/class_alias/bug54268.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/class_alias/bug54268.phpt
-
curl -L -o bug54268.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/class_alias/bug54268.phpt
758 Bytes
| --TEST-- | |
| Bug #54268 (Double free when destroy_zend_class fails) | |
| --INI-- | |
| memory_limit=8M | |
| --SKIPIF-- | |
| $zend_mm_enabled = getenv("USE_ZEND_ALLOC"); | |
| if ($zend_mm_enabled === "0") { | |
| die("skip Zend MM disabled"); | |
| } | |
| --FILE-- | |
| class DestructableObject | |
| { | |
| public function __destruct() | |
| { | |
| DestructableObject::__destruct(); | |
| } | |
| } | |
| class DestructorCreator | |
| { | |
| public $test; | |
| public function __destruct() | |
| { | |
| $this->test = new DestructableObject; | |
| } | |
| } | |
| class Test | |
| { | |
| public static $mystatic; | |
| } | |
| $x = new Test(); | |
| Test::$mystatic = new DestructorCreator(); | |
| --EXPECTF-- | |
| Fatal error: Allowed memory size of %s bytes exhausted%s(tried to allocate %s bytes) in %s on line %d | |