From 0fe08e9b6778b6fad5e13a8c948a87e7c171e4d2 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 20 Oct 2005 08:56:02 +0000 Subject: [PATCH] Fixed bug #34712 (zend.ze1_compatibility_mode = on segfault) --- Zend/tests/bug34712.phpt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 Zend/tests/bug34712.phpt 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 -- 2.50.1