Download src/php/php-src/Zend/tests/errmsg/bug43344_12.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 323 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/errmsg/bug43344_12.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/errmsg/bug43344_12.phpt
-
curl -L -o bug43344_12.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/errmsg/bug43344_12.phpt
323 Bytes
| --TEST-- | |
| Bug #43344.12 (Wrong error message for undefined namespace constant) | |
| --FILE-- | |
| function f($a=array(namespace\bar)) { | |
| return $a[0]; | |
| } | |
| echo f()."\n"; | |
| --EXPECTF-- | |
| Fatal error: Uncaught Error: Undefined constant "bar" in %s:%d | |
| Stack trace: | |
| #0 %s(%d): f() | |
| #1 {main} | |
| thrown in %sbug43344_12.php on line %d | |