Download src/php/php-src/Zend/tests/clone/bug68262.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 293 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/clone/bug68262.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/clone/bug68262.phpt
-
curl -L -o bug68262.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/clone/bug68262.phpt
293 Bytes
| --TEST-- | |
| Bug #68262: Broken reference across cloned objects | |
| --FILE-- | |
| class C { | |
| public $p; | |
| } | |
| $first = new C; | |
| $first->p = 'init'; | |
| $clone = clone $first; | |
| $ref =& $first->p; | |
| unset($ref); | |
| $clone = clone $first; | |
| $clone->p = 'foo'; | |
| var_dump($first->p); | |
| --EXPECT-- | |
| string(4) "init" | |