]> granicus.if.org Git - php/commitdiff
- MFB
authorMarcus Boerger <helly@php.net>
Thu, 25 May 2006 10:50:53 +0000 (10:50 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 25 May 2006 10:50:53 +0000 (10:50 +0000)
ext/standard/tests/strings/bug22224.phpt

index 82c295c1a68276c8844ecb1df0e2ad99245e847f..0546c68384451138ce1bbc51e7d0ea9b9945b31b 100644 (file)
@@ -4,14 +4,14 @@ Bug #22224 (implode changes object references in array)
 error_reporting=0
 --FILE--
 <?php
-function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
-       //ignore all errors
+class foo
+{
+       function __toString()
+       {
+               return "Object";
+       }
 }
 
-set_error_handler('test_error_handler');
-       
-class foo {
-}
 
 $a = new foo();