Test: /ext/standard/tests/general_functions/bug32647.phpt - Version 7.0.16-dev        

Bug #32647 Using register_shutdown_function() with invalid callback can crash PHP
Submitted: 2005-04-09 21:05:43 Modified: 2005-04-21 17:02:58
From: interghost Assigned: sniper
Status: Closed Package: Reproducible crash
PHP Version: 4.*, 5.* OS: *

There is 1 diff reported by users for this test.

Count Diff
2 (100%)
003+ Fatal error: Uncaught TypeError: Argument 1 passed to register_shutdown_function() must be callable, array given in %s/bug32647.php:15
004+ Stack trace:
005+ #0 %s/bug32647.php(15): register_shutdown_function(Array)
006+ #1 {main}
007+ thrown in %s/bug32647.php on line 15
003- Warning: register_shutdown_function(): Invalid shutdown callback 'Array' passed in %s on line %d
004-
005- Notice: Undefined variable: obj in %s on line %d
006-
007- Warning: register_shutdown_function(): Invalid shutdown callback 'Array' passed in %s on line %d
008-
009- Warning: register_shutdown_function(): Invalid shutdown callback 'Array' passed in %s on line %d
010-
011- Warning: register_shutdown_function(): Invalid shutdown callback 'bar::foo' passed in %s on line %d
012-
013- Warning: register_shutdown_function(): Invalid shutdown callback 'Array' passed in %s on line %d
014-
015- Warning: register_shutdown_function(): Invalid shutdown callback 'bar' passed in %s on line %d
016-
017- Deprecated: Non-static method bar::barfoo() should not be called statically in %sbug32647.php on line %d
018-
019- Warning: register_shutdown_function(): Invalid shutdown callback 'bar::foobar' passed in %sbug32647.php on line %d
020- foo!
021-
022- Deprecated: Non-static method bar::barfoo() should not be called statically in Unknown on line 0
023-
024- Deprecated: Non-static method bar::barfoo() should not be called statically in Unknown on line 0
025- bar!
026- bar!