xref: /PHP-8.2/Zend/tests/bug78658.phpt (revision d30cd7d7)
1--TEST--
2Bug #78658: Memory corruption using Closure::bindTo()
3--FILE--
4<?php
5
6$c = function(){};
7
8$scope = "AAAA";
9$scope = "{$scope}BBBB";
10$c->bindTo(new stdClass, $scope);
11
12?>
13--EXPECTF--
14Warning: Class "AAAABBBB" not found in %s on line %d
15