Download src/php/php-src/Zend/tests/debug_info/bug69537.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 246 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/debug_info/bug69537.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/debug_info/bug69537.phpt
-
curl -L -o bug69537.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/debug_info/bug69537.phpt
246 Bytes
| --TEST-- | |
| Bug #69537 (__debugInfo with empty string for key gives error) | |
| --FILE-- | |
| class Foo { | |
| public function __debugInfo(){ | |
| return ['' => 1]; | |
| } | |
| } | |
| var_dump(new Foo); | |
| --EXPECTF-- | |
| object(Foo)#%d (%d) { | |
| [""]=> | |
| int(1) | |
| } | |