Download src/php/php-src/Zend/tests/exceptions/bug73350.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug73350.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/exceptions/bug73350.phpt
-
curl -L -o bug73350.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/bug73350.phpt
512 Bytes
| --TEST-- | |
| Bug #73350 (Exception::__toString() cause circular references) | |
| --FILE-- | |
| $e = new Exception(); | |
| // This line cause problem :( | |
| // Comment it to see the difference. | |
| (string) $e; | |
| // This line show the clue (PHP Warning: ...). | |
| var_export($e); | |
| --EXPECTF-- | |
| \Exception::__set_state(array( | |
| 'message' => '', | |
| 'string' => 'Exception in %sbug73350.php:%d | |
| Stack trace: | |
| #0 {main}', | |
| 'code' => 0, | |
| 'file' => '%sbug73350.php', | |
| 'line' => %d, | |
| 'trace' => | |
| array ( | |
| ), | |
| 'previous' => NULL, | |
| )) | |