For Programmers: Free Programming Magazines  


Home > Archive > PHP Zend Engine > October 2005 > cvs: ZendEngine2 /tests bug34712.phpt









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: ZendEngine2 /tests bug34712.phpt
Dmitry Stogov

2005-10-20, 4:00 am

dmitry Thu Oct 20 04:56:02 2005 EDT

Modified files:
/ZendEngine2/tests bug34712.phpt
Log:
Fixed bug #34712 (zend.ze1_compatibility_mode = on segfault)


http://cvs.php.net/diff.php/ZendEng...1.1&r2=1.2&ty=u
Index: ZendEngine2/tests/bug34712.phpt
diff -u /dev/null ZendEngine2/tests/bug34712.phpt:1.2
--- /dev/null Thu Oct 20 04:56:02 2005
+++ ZendEngine2/tests/bug34712.phpt Thu Oct 20 04:56:02 2005
@@ -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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com