|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41026 Zend Engine segfauls while invoking shutdown callbacks
Submitted: 2007-04-09 00:28 UTC Modified: 2007-04-09 07:30 UTC
From: vesselin at awcreator dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.2.1 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
48 - 30 = ?
Subscribe to this entry?

 [2007-04-09 00:28 UTC] vesselin at awcreator dot com
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:
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-09 07:30 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Sep 20 10:01:24 2020 UTC