mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
16 lines
346 B
PHP
16 lines
346 B
PHP
--TEST--
|
|
Bug #63882 (zend_std_compare_objects crash on recursion)
|
|
--FILE--
|
|
<?php
|
|
class Test { public $x = 5; }
|
|
|
|
$testobj1 = new Test;
|
|
$testobj2 = new Test;
|
|
$testobj1->x = $testobj1;
|
|
$testobj2->x = $testobj2;
|
|
|
|
var_dump($testobj1 == $testobj2);
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Nesting level too deep - recursive dependency? in %sbug63882.php on line 9
|