From: Dmitry Stogov Date: Thu, 20 Oct 2005 08:56:02 +0000 (+0000) Subject: Fixed bug #34712 (zend.ze1_compatibility_mode = on segfault) X-Git-Tag: RELEASE_0_9_1~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0fe08e9b6778b6fad5e13a8c948a87e7c171e4d2;p=php Fixed bug #34712 (zend.ze1_compatibility_mode = on segfault) --- diff --git a/Zend/tests/bug34712.phpt b/Zend/tests/bug34712.phpt new file mode 100755 index 0000000000..db7860cd38 --- /dev/null +++ b/Zend/tests/bug34712.phpt @@ -0,0 +1,28 @@ +--TEST-- +Bug #34712 zend.ze1_compatibility_mode = on segfault +--INI-- +zend.ze1_compatibility_mode=1 +error_reporting=4095 +--FILE-- +bar = &$obj_ref; + } +} + + +class bar { + function bar() { + $this->foo = new foo($this); + } +} + +$test = new bar; +echo "ok\n"; +?> +--EXPECTF-- +Strict Standards: Implicit cloning object of class 'foo' because of 'zend.ze1_compatibility_mode' in %sbug34712.php on line 11 + +Strict Standards: Implicit cloning object of class 'bar' because of 'zend.ze1_compatibility_mode' in %sbug34712.php on line 15 +ok