|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-09 07:30 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ When a callback that invokes a static class method is passed to register_shutdown_function(), the function incorrectly accepts it and after that zend engine segfaults when trying to invoke the callback. Reproduce code: --------------- <?php class try_class { static public function main () { register_shutdown_function (array ("self", "on_shutdown")); } static public function on_shutdown () { printf ("CHECKPOINT\n"); } } try_class::main (); ?> Expected result: ---------------- Some kind of error message Actual result: -------------- A segmentation fault.