Download src/php/php-src/Zend/tests/closures/bug70630.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 279 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/closures/bug70630.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/closures/bug70630.phpt
-
curl -L -o bug70630.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/closures/bug70630.phpt
279 Bytes
| --TEST-- | |
| Bug #70630 (Closure::call/bind() crash with ReflectionFunction->getClosure()) | |
| --FILE-- | |
| class a {} | |
| $x = (new ReflectionFunction("substr"))->getClosure(); | |
| $x->call(new a); | |
| --EXPECTF-- | |
| Warning: Cannot rebind scope of closure created from function in %s on line %d | |