Download src/php/php-src/ext/reflection/tests/gh15902/ReflectionProperty-callable.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/gh15902/ReflectionProperty-callable.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/reflection/tests/gh15902/ReflectionProperty-callable.phpt
-
curl -L -o ReflectionProperty-callable.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/reflection/tests/gh15902/ReflectionProperty-callable.phpt
326 Bytes
| --TEST-- | |
| ReflectionProperty object default - used to say "callable" | |
| --INI-- | |
| opcache.enable_cli=0 | |
| --FILE-- | |
| class C { | |
| public stdClass $a = FOO; | |
| } | |
| define('FOO', new stdClass); | |
| new C; | |
| $reflector = new ReflectionProperty(C::class, 'a'); | |
| echo $reflector; | |
| --EXPECTF-- | |
| Property [ public stdClass $a = object(stdClass) ] | |