mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
73fed0f028
Fixes oss-fuzz #44408
12 lines
174 B
PHP
12 lines
174 B
PHP
--TEST--
|
|
Closure::bindTo leaks with "fake" closure
|
|
--FILE--
|
|
<?php
|
|
function foo(){
|
|
static $y;
|
|
}
|
|
Closure::fromCallable('foo')->bindTo(new stdClass);
|
|
?>
|
|
DONE
|
|
--EXPECT--
|
|
DONE
|