]> granicus.if.org Git - php/commitdiff
Strict warnings
authorDmitry Stogov <dmitry@php.net>
Thu, 19 May 2005 09:58:23 +0000 (09:58 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 19 May 2005 09:58:23 +0000 (09:58 +0000)
Zend/tests/bug31828.phpt
Zend/tests/bug32080.phpt

index 09a95d50880e6c825fd4f95ea3cdc0768c81f1a2..a3cc4542fd70833ec0712b490be11c8eb47db3dd 100644 (file)
@@ -2,6 +2,7 @@
 Bug #31828 (Crash with zend.ze1_compatibility_mode=On)
 --INI--
 zend.ze1_compatibility_mode=on
+error_reporting=4095
 --FILE--
 <?php
 $o = new stdClass();
@@ -11,7 +12,12 @@ $a[] = $o;
 $a = $a[0];
 print_r($a);
 ?>
---EXPECT--
+--EXPECTF--
+Strict Standards: Implicit cloning object of class 'stdClass' because of 'zend.ze1_compatibility_mode' in %sbug31828.php on line 2
+
+Strict Standards: Implicit cloning object of class 'stdClass' because of 'zend.ze1_compatibility_mode' in %sbug31828.php on line 5
+
+Strict Standards: Implicit cloning object of class 'stdClass' because of 'zend.ze1_compatibility_mode' in %sbug31828.php on line 6
 stdClass Object
 (
     [id] => 77
index ffaa190b096ccf1207e5e15fdd77a806dcec5335..a96c8bf26273be6d5dfcb1431677655054649e97 100644 (file)
@@ -2,6 +2,7 @@
 Bug #32080 (segfault when assigning object to itself with zend.ze1_compatibility_mode=On)
 --INI--
 zend.ze1_compatibility_mode=on
+error_reporting=4095
 --FILE--
 <?php
 class test { }
@@ -9,6 +10,9 @@ $t = new test;
 $t = $t; // gives segfault
 var_dump($t);
 ?>
---EXPECT--
-object(test)#2 (0) {
+--EXPECTF--
+Strict Standards: Implicit cloning object of class 'test' because of 'zend.ze1_compatibility_mode' in %sbug32080.php on line 3
+
+Strict Standards: Implicit cloning object of class 'test' because of 'zend.ze1_compatibility_mode' in %sbug32080.php on line 5
+object(test)#%d (0) {
 }