Edit report at https://bugs.php.net/bug.php?id=62763&edit=1
ID: 62763 Updated by: larue...@php.net Reported by: valentiny510 at yahoo dot es Summary: register_shutdown_function and extending class Status: Closed Type: Bug Package: Scripting Engine problem Operating System: XP PHP Version: 5.4.5 Assigned To: laruence Block user comment: N Private report: N New Comment: the fix is only fix the crash or "hash inconsistent" warning. but leaves a memleak. but IMO it's the proper way for this. Previous Comments: ------------------------------------------------------------------------ [2012-08-12 12:57:16] larue...@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=4970926e4543c15e16b0c047d85dddfb4c09b581 Log: Fixed bug #62763 (register_shutdown_function and extending class) ------------------------------------------------------------------------ [2012-08-12 12:56:50] larue...@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=4970926e4543c15e16b0c047d85dddfb4c09b581 Log: Fixed bug #62763 (register_shutdown_function and extending class) ------------------------------------------------------------------------ [2012-08-12 12:55:33] larue...@php.net This bug has been fixed in SVN. 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/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2012-08-12 12:55:28] larue...@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=4970926e4543c15e16b0c047d85dddfb4c09b581 Log: Fixed bug #62763 (register_shutdown_function and extending class) ------------------------------------------------------------------------ [2012-08-07 04:52:39] valentiny510 at yahoo dot es P.S. 2 :D Sorry. The errors... [07-Aug-2012 05:39:51 UTC] PHP Warning: (Registered shutdown functions) Unable to call test1::shutdown() - function does not exist in Unknown on line 0 [07-Aug-2012 05:39:51 UTC] PHP Warning: (Registered shutdown functions) Unable to call test2::shutdown() - function does not exist in Unknown on line 0 are shown when the function "shutdown" is private. If I "exit" it crush the server but if I "echo" the result is Shutdown Shutdown test2::__destruct Now.. why it output twice when I dont even called parent::__construct ? If I add an empty __construct function to the child the output is test2::__destruct Shutdown Note also the called order... ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=62763 -- Edit this bug report at https://bugs.php.net/bug.php?id=62763&edit=1