mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
51d495850a
will follow later today)
19 lines
539 B
PHP
19 lines
539 B
PHP
--TEST--
|
|
Bug #32080 (segfault when assigning object to itself with zend.ze1_compatibility_mode=On)
|
|
--INI--
|
|
zend.ze1_compatibility_mode=on
|
|
error_reporting=4095
|
|
--FILE--
|
|
<?php
|
|
class test { }
|
|
$t = new test;
|
|
$t = $t; // gives segfault
|
|
var_dump($t);
|
|
?>
|
|
--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) {
|
|
}
|