xref: /PHP-8.1/Zend/tests/closure_063.phpt (revision 73fed0f0)
1--TEST--
2Closure::bindTo leaks with "fake" closure
3--FILE--
4<?php
5function foo(){
6    static $y;
7}
8Closure::fromCallable('foo')->bindTo(new stdClass);
9?>
10DONE
11--EXPECT--
12DONE