2005-05-17 17:34:44 +00:00
|
|
|
--TEST--
|
2005-04-29 07:03:54 +00:00
|
|
|
Bug #32080 (segfault when assigning object to itself with zend.ze1_compatibility_mode=On)
|
|
|
|
--INI--
|
|
|
|
zend.ze1_compatibility_mode=on
|
2005-05-19 09:58:23 +00:00
|
|
|
error_reporting=4095
|
2005-04-29 07:03:54 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
class test { }
|
|
|
|
$t = new test;
|
|
|
|
$t = $t; // gives segfault
|
|
|
|
var_dump($t);
|
|
|
|
?>
|
2005-05-19 09:58:23 +00:00
|
|
|
--EXPECTF--
|
|
|
|
Strict Standards: Implicit cloning object of class 'test' because of 'zend.ze1_compatibility_mode' in %sbug32080.php on line 3
|
|
|
|
|
|
|
|
Strict Standards: Implicit cloning object of class 'test' because of 'zend.ze1_compatibility_mode' in %sbug32080.php on line 5
|
|
|
|
object(test)#%d (0) {
|
2005-04-29 07:03:54 +00:00
|
|
|
}
|