diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-10-20 08:55:10 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-10-20 08:55:10 +0000 |
commit | c326593c1a1e82c2fec2072b38176552d20c0169 (patch) | |
tree | e72b78f3f1eb461f1523221a7238e476a0029808 | |
parent | 03cb8e959b20f38245e66db129764d66f4fee334 (diff) | |
download | php-git-c326593c1a1e82c2fec2072b38176552d20c0169.tar.gz |
Fixed bug #34712 (zend.ze1_compatibility_mode = on segfault)
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | Zend/tests/bug34712.phpt | 28 |
2 files changed, 29 insertions, 0 deletions
@@ -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-- +<?php +class foo { + function foo(&$obj_ref) { + $this->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 |