Download src/php/php-src/Zend/tests/gc/bug54305.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/gc/bug54305.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/gc/bug54305.phpt
-
curl -L -o bug54305.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/gc/bug54305.phpt
390 Bytes
| --TEST-- | |
| Bug #54305 (Crash in gc_remove_zval_from_buffer) | |
| --FILE-- | |
| class TestClass { | |
| public function methodWithArgs($a, $b) { | |
| } | |
| } | |
| abstract class AbstractClass { | |
| } | |
| $methodWithArgs = new ReflectionMethod('TestClass', 'methodWithArgs'); | |
| try { | |
| echo $methodWithArgs++; | |
| } catch (TypeError $e) { | |
| echo $e->getMessage(), "\n"; | |
| } | |
| --EXPECT-- | |
| Cannot increment ReflectionMethod | |