Download src/php/php-src/tests/output/bug70970.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 589 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/output/bug70970.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/output/bug70970.phpt
-
curl -L -o bug70970.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/output/bug70970.phpt
589 Bytes
| --TEST-- | |
| Bug #70970 (Segfault when combining error handler with output buffering) | |
| --FILE-- | |
| function exception_error_handler($severity, $message, $file, $line) | |
| { | |
| throw new Exception($message, 0); | |
| } | |
| set_error_handler('exception_error_handler'); | |
| function obHandler($buffer, $phase = null) | |
| { | |
| try { | |
| ob_start(); | |
| } catch (Exception $e) { | |
| return (string) $e; | |
| } | |
| return $buffer; | |
| } | |
| ob_start('obHandler'); | |
| print 'test'; | |
| --EXPECTF-- | |
| Fatal error: ob_start(): Cannot use output buffering in output buffering display handlers in %sbug70970.php on line %d | |