#41026 [Opn->Csd]: Zend Engine segfauls while invoking shutdown callbacks
| From: | tony2001@php.net | Date: | Mon, 09 Apr 2007 07:30:38 +0000 |
| Subject: | #41026 [Opn->Csd]: Zend Engine segfauls while invoking shutdown callbacks | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-111225@lists.php.net to get a copy of this message | ||
ID: 41026
Updated by: tony2001@php.net
Reported By: vesselin at awcreator dot com
-Status: Open
+Status: Closed
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 5.2.1
New Comment:
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
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2007-04-09 00:28:38] vesselin at awcreator dot com
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41026&edit=1