#34344 [Bgs]: register_shutdown_function() in classes
| From: | thomas at ecommerce dot com | Date: | Fri, 02 Sep 2005 14:48:38 +0000 |
| Subject: | #34344 [Bgs]: register_shutdown_function() in classes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84422@lists.php.net to get a copy of this message | ||
ID: 34344
User updated by: thomas at ecommerce dot com
Reported By: thomas at ecommerce dot com
Status: Bogus
Bug Type: SPL related
Operating System: SuSE Linux
PHP Version: 5.0.4
New Comment:
does that mean this code will work in PHP5.0 ( when login function is
public ) and in PHP5.1 this code won't work anymore?
Previous Comments:
------------------------------------------------------------------------
[2005-09-02 16:39:49] sniper@php.net
Ah yes, you can't really call any object methods inside a shutdown
function since the objects are destructed before that.
------------------------------------------------------------------------
[2005-09-02 16:27:45] thomas at ecommerce dot com
Script start! Init Class.
Class init call!
Registrering shutdown function..
done
Class inited!
Warning: (Registered shutdown functions) Unable to call
TestClass::_log() - function does not exist in Unknown on line 0
------------------------------
This is the output with the latest CVS Snap. The problem still exists
and the Error Message is wrong ( function does not exist, but exists )
------------------------------------------------------------------------
[2005-09-02 16:15:12] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-09-02 12:54:14] thomas at ecommerce dot com
Script start! Init Class.
Class init call!
Registrering shutdown function..
done
Class inited!
Fatal error: Call to private method TestClass::_log() from context ''
in Unknown on line 0
----------
is the current result
------------------------------------------------------------------------
[2005-09-02 12:53:19] thomas at ecommerce dot com
Updated Expected result part
------------------------------------------------------------------------
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
http://bugs.php.net/34344
--
Edit this bug report at http://bugs.php.net/?id=34344&edit=1