Download src/php/php-src/Zend/tests/dynamic_call/bug63173.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 323 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/dynamic_call/bug63173.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/dynamic_call/bug63173.phpt
-
curl -L -o bug63173.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/dynamic_call/bug63173.phpt
323 Bytes
| --TEST-- | |
| Bug #63173: Crash when invoking invalid array callback | |
| --FILE-- | |
| // the important part here are the indexes 1 and 2 | |
| $callback = [1 => 0, 2 => 0]; | |
| $callback(); | |
| --EXPECTF-- | |
| Fatal error: Uncaught Error: Array callback has to contain indices 0 and 1 in %s:%d | |
| Stack trace: | |
| #0 {main} | |
| thrown in %s on line %d | |