Download src/php/php-src/Zend/tests/autoload/bug37138.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 593 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/autoload/bug37138.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/autoload/bug37138.phpt
-
curl -L -o bug37138.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/autoload/bug37138.phpt
593 Bytes
| --TEST-- | |
| Bug #37138 (autoloader tries to load callback'ed self and parent) | |
| --FILE-- | |
| spl_autoload_register(function ($CN) { var_dump ($CN); }); | |
| class st { | |
| public static function e () {echo ("EHLO\n");} | |
| public static function e2 () {call_user_func (array ('self', 'e'));} | |
| } | |
| class stch extends st { | |
| public static function g () {call_user_func (array ('parent', 'e'));} | |
| } | |
| st::e (); | |
| st::e2 (); | |
| stch::g (); | |
| --EXPECTF-- | |
| EHLO | |
| Deprecated: Use of "self" in callables is deprecated in %s on line %d | |
| EHLO | |
| Deprecated: Use of "parent" in callables is deprecated in %s on line %d | |
| EHLO | |