]> granicus.if.org Git - php/commitdiff
fix test
authorAntony Dovgal <tony2001@php.net>
Thu, 19 Jan 2006 21:27:15 +0000 (21:27 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 19 Jan 2006 21:27:15 +0000 (21:27 +0000)
Zend/tests/bug32290.phpt
ext/standard/tests/strings/bug22224.phpt

index c038083775740a2df227aeb05d5ea411b0663d1d..a9f9c69435cb4cf704233eb8cdc0a5164a56c046 100755 (executable)
@@ -98,7 +98,7 @@ var_dump($x->doSomethingStatic(1));
 ===A===
 TestB::doSomething(1)
 
-Strict Standards: Non-static method TestA::doSomething() cannot be called statically, assuming $this from compatible context TestB in %sbug32290.php on line %d
+Strict Standards: Non-static method TestA::doSomething() cannot be called statically in %s on line %d
 TestA::doSomething(2)
 int(1)
 
@@ -110,7 +110,7 @@ int(1)
 ===C===
 TestB::doSomethingParent(1)
 
-Strict Standards: Non-static method TestA::doSomethingParent() cannot be called statically, assuming $this from compatible context TestB in %sbug32290.php on line %d
+Strict Standards: Non-static method TestA::doSomethingParent() cannot be called statically in %s on line %d
 TestA::doSomethingParent(2)
 int(1)
 
index b9a1191537b45c92c23912121ee19ef57c035350..82c295c1a68276c8844ecb1df0e2ad99245e847f 100644 (file)
@@ -4,9 +4,14 @@ Bug #22224 (implode changes object references in array)
 error_reporting=0
 --FILE--
 <?php
-class foo {
+function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
+       //ignore all errors
 }
 
+set_error_handler('test_error_handler');
+       
+class foo {
+}
 
 $a = new foo();