php-src/Zend/tests/bug78658.phpt
2020-07-10 21:05:28 +02:00

15 lines
244 B
PHP

--TEST--
Bug #78658: Memory corruption using Closure::bindTo()
--FILE--
<?php
$c = function(){};
$scope = "AAAA";
$scope = "{$scope}BBBB";
$c->bindTo(new stdClass, $scope);
?>
--EXPECTF--
Warning: Class "AAAABBBB" not found in %s on line %d