mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
d30cd7d7e7
Closes GH-5590
15 lines
244 B
PHP
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
|