helly Fri Dec 16 23:21:38 2005 EDT Modified files: /php-src/ext/standard/tests/general_functions bug32647.phpt /php-src/tests/classes bug27504.phpt Log: - MFB http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/tests/general_functions/bug32647.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/standard/tests/general_functions/bug32647.phpt diff -u php-src/ext/standard/tests/general_functions/bug32647.phpt:1.1 php-src/ext/standard/tests/general_functions/bug32647.phpt:1.2 --- php-src/ext/standard/tests/general_functions/bug32647.phpt:1.1 Thu Apr 21 14:17:52 2005 +++ php-src/ext/standard/tests/general_functions/bug32647.phpt Fri Dec 16 23:21:38 2005 @@ -1,14 +1,14 @@ --TEST-- Bug #32647 (Using register_shutdown_function() with invalid callback can crash PHP) --INI-- -error_reporting=2047 +error_reporting=4095 display_errors=1 --FILE-- <?php function foo() { - echo "joo!\n"; + echo "foo!\n"; } class bar @@ -23,9 +23,9 @@ register_shutdown_function(array(0,"")); // Invalid register_shutdown_function(array('bar','foo')); // Invalid register_shutdown_function(array(0,"some string")); // Invalid -register_shutdown_function('bar'); // Valid +register_shutdown_function('bar'); // Invalid register_shutdown_function('foo'); // Valid -register_shutdown_function(array('bar','barfoo')); // Valid +register_shutdown_function(array('bar','barfoo')); // Invalid $obj = new bar; register_shutdown_function(array($obj,'foobar')); // Invalid @@ -45,11 +45,13 @@ Warning: register_shutdown_function(): Invalid shutdown callback 'Array' passed in %s on line %d -Warning: (Registered shutdown functions) Unable to call bar::foo() - function does not exist in Unknown on line 0 +Strict Standards: Non-static method bar::barfoo() cannot be called statically in %sbug32647.php on line %d -Warning: (Registered shutdown functions) Unable to call bar() - function does not exist in Unknown on line 0 -joo! -bar! +Warning: register_shutdown_function(): Invalid shutdown callback 'bar::foobar' passed in %sbug32647.php on line %d +foo! + +Strict Standards: Non-static method bar::barfoo() cannot be called statically in Unknown on line 0 -Warning: (Registered shutdown functions) Unable to call bar::foobar() - function does not exist in Unknown on line 0 +Strict Standards: Non-static method bar::barfoo() cannot be called statically in Unknown on line 0 +bar! bar! http://cvs.php.net/viewcvs.cgi/php-src/tests/classes/bug27504.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/tests/classes/bug27504.phpt diff -u php-src/tests/classes/bug27504.phpt:1.1 php-src/tests/classes/bug27504.phpt:1.2 --- php-src/tests/classes/bug27504.phpt:1.1 Tue Mar 16 16:45:44 2004 +++ php-src/tests/classes/bug27504.phpt Fri Dec 16 23:21:38 2005 @@ -20,5 +20,6 @@ --EXPECTF-- Called function foo:bar(%d) -Fatal error: Call to private method foo::bar() from context '' in %s on line 13 +Warning: call_user_func_array(): First argument is expected to be a valid callback, 'foo::bar' was given in %sbug27504.php on line %d +Fatal error: Call to private method foo::bar() from context '' in %s on line %d
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php