Download src/php/php-src/Zend/tests/concat/bug68118.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 324 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/concat/bug68118.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/concat/bug68118.phpt
-
curl -L -o bug68118.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/concat/bug68118.phpt
324 Bytes
| --TEST-- | |
| Bug #68118: $a->foo .= 'test'; can leave $a->foo undefined | |
| --FILE-- | |
| set_error_handler(function() { | |
| $obj = new stdClass; | |
| $obj->test = 'meow'; | |
| return true; | |
| }); | |
| $a = new stdClass; | |
| $a->undefined .= 'test'; | |
| var_dump($a); | |
| --EXPECT-- | |
| object(stdClass)#2 (1) { | |
| ["undefined"]=> | |
| string(4) "test" | |
| } | |