Download src/php/php-src/Zend/tests/exceptions/exception_handler/bug40815.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/exception_handler/bug40815.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/exceptions/exception_handler/bug40815.phpt
-
curl -L -o bug40815.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/exceptions/exception_handler/bug40815.phpt
327 Bytes
| --TEST-- | |
| Bug #40815 (using strings like "class::func" and static methods in set_exception_handler() might result in crash). | |
| --FILE-- | |
| class ehandle{ | |
| static public function exh ($ex) { | |
| echo 'foo'; | |
| } | |
| } | |
| set_exception_handler("ehandle::exh"); | |
| throw new Exception ("Whiii"); | |
| echo "Done\n"; | |
| --EXPECT-- | |
| foo | |