Your IP : 216.73.216.48


Current Path : /hdd/hdd21/main/php/php-7.3.1/Zend/tests/
Upload File :
Current File : //hdd/hdd21/main/php/php-7.3.1/Zend/tests/bug73989.phpt

--TEST--
Bug #73989 (PHP 7.1 Segfaults within Symfony test suite)
--FILE--
<?php
class Cycle
{
    private $thing;

    public function __construct()
    {
		$obj = $this;
        $this->thing = function() use($obj) {};
    }

    public function __destruct()
    {
		($this->thing)();
    }

}

for ($i = 0; $i < 10000; ++$i) {
    $obj = new Cycle();
}
echo "OK\n";
?>
--EXPECT--
OK