xref: /PHP-7.3/Zend/tests/bug78658.phpt (revision 6fd6ad8f)
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