Download src/php/php-src/Zend/tests/bug67436/bug67436.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 670 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/bug67436/bug67436.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/bug67436/bug67436.phpt
-
curl -L -o bug67436.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/bug67436/bug67436.phpt
670 Bytes
| --TEST-- | |
| bug67436: Autoloader isn't called if user defined error handler is present | |
| --INI-- | |
| error_reporting=-1 | |
| --SKIPIF-- | |
| if (extension_loaded('Zend OPCache')) die('skip Opcache overrides error handler'); | |
| --FILE-- | |
| spl_autoload_register(function($classname) { | |
| if (in_array($classname, array('a','b','c'))) { | |
| require_once __DIR__ . "/{$classname}.inc"; | |
| } | |
| }); | |
| set_error_handler(function ($errno, $errstr, $errfile, $errline) { | |
| var_dump($errstr); | |
| }, error_reporting()); | |
| a::staticTest(); | |
| $b = new b(); | |
| $b->test(); | |
| --EXPECTF-- | |
| string(%d) "The magic method b::__invoke() must have public visibility" | |
| b::test() | |
| a::test(c::TESTCONSTANT) | |