From c326593c1a1e82c2fec2072b38176552d20c0169 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 20 Oct 2005 08:55:10 +0000 Subject: [PATCH] Fixed bug #34712 (zend.ze1_compatibility_mode = on segfault) --- NEWS | 1 + Zend/tests/bug34712.phpt | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100755 Zend/tests/bug34712.phpt diff --git a/NEWS b/NEWS index 3a54ef5ce4..93d00d02c3 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,7 @@ PHP NEWS - Fixed bug #34899 (Fixed sqlite extension compile failure). (Ilia) - Fixed bug #34767 (Zend Engine 1 Compatibility not copying objects correctly). (Dmitry) +- Fixed bug #34712 (zend.ze1_compatibility_mode = on segfault). (Dmitry) - Fixed bug #33829 (mime_content_type() returns text/plain for gzip and bzip files). (Derick) - Fixed bug #34623 (Crash in pdo_mysql on longtext fields). (Ilia) 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.40.0