Download src/php/php-src/Zend/tests/exceptions/bug60569.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 300 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug60569.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/exceptions/bug60569.phpt
-
curl -L -o bug60569.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug60569.phpt
300 Bytes
| --TEST-- | |
| Bug #60569 (Nullbyte truncates Exception $message.) | |
| --FILE-- | |
| try { | |
| $msg = "Some error \x00 message"; | |
| throw new Exception($msg); | |
| } catch(Exception $e) { | |
| var_dump($e->getMessage(), $msg); | |
| } | |
| --EXPECTF-- | |
| string(20) "Some error %0 message" | |
| string(20) "Some error %0 message" | |