Download src/php/php-src/Zend/tests/get_class_methods/bug43483.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/get_class_methods/bug43483.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/get_class_methods/bug43483.phpt
-
curl -L -o bug43483.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/get_class_methods/bug43483.phpt
419 Bytes
| --TEST-- | |
| Bug #43483 (get_class_methods() does not list all visible methods) | |
| --FILE-- | |
| class C { | |
| public static function test() { | |
| D::prot(); | |
| print_r(get_class_methods("D")); | |
| } | |
| } | |
| class D extends C { | |
| protected static function prot() { | |
| echo "Successfully called D::prot().\n"; | |
| } | |
| } | |
| D::test(); | |
| --EXPECT-- | |
| Successfully called D::prot(). | |
| Array | |
| ( | |
| [0] => prot | |
| [1] => test | |
| ) | |