]> granicus.if.org Git - php/commitdiff
Fix tests (new error message)
authorFelipe Pena <felipe@php.net>
Mon, 4 Feb 2008 13:56:50 +0000 (13:56 +0000)
committerFelipe Pena <felipe@php.net>
Mon, 4 Feb 2008 13:56:50 +0000 (13:56 +0000)
tests/classes/autoload_012.phpt
tests/classes/bug27504.phpt

index 13e0f9f76a975c7a33e8fdc0832a36b77f0ee979..2563f7598e743461eba978aa316540e5a404cd84 100644 (file)
@@ -12,9 +12,9 @@ Ensure callback methods in unknown classes trigger autoload.
 --EXPECTF--
 In autoload: string(6) "UndefC"
 
-Warning: call_user_func() expects parameter 1 to be valid callback, string given in %s on line %d
+Warning: call_user_func() expects parameter 1 to be a valid callback, class 'UndefC' not found in %s on line %d
 
 --UEXPECTF--
 In autoload: unicode(6) "UndefC"
 
-Warning: call_user_func() expects parameter 1 to be valid callback, Unicode string given in %s on line %d 
+Warning: call_user_func() expects parameter 1 to be a valid callback, class 'UndefC' not found in %s on line %d
index c83a7ae0313ce1ebd06bc3298bbcabe20de9e200..5f2c5a03ce7ac3abfc7a24f1e7be6ab2dc50ff89 100644 (file)
@@ -20,6 +20,6 @@ Bug #27504 (call_user_func_array allows calling of private/protected methods)
 --EXPECTF--
 Called function foo:bar(1)
 
-Warning: call_user_func_array() expects parameter 1 to be valid callback, array given in %s on line %d
+Warning: call_user_func_array() expects parameter 1 to be a valid callback, cannot access private method foo::bar() in %s on line %d
 
 Fatal error: Call to private method foo::bar() from context '' in %s on line %d