Download src/php/php-src/Zend/tests/closures/bug78658.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 244 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/closures/bug78658.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/closures/bug78658.phpt
-
curl -L -o bug78658.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/closures/bug78658.phpt
244 Bytes
| --TEST-- | |
| Bug #78658: Memory corruption using Closure::bindTo() | |
| --FILE-- | |
| $c = function(){}; | |
| $scope = "AAAA"; | |
| $scope = "{$scope}BBBB"; | |
| $c->bindTo(new stdClass, $scope); | |
| --EXPECTF-- | |
| Warning: Class "AAAABBBB" not found in %s on line %d | |