#33824 [Opn->Bgs]: __destruct() mechanism propably incorrect
| From: | tony2001@php.net | Date: | Fri, 22 Jul 2005 16:27:25 +0000 |
| Subject: | #33824 [Opn->Bgs]: __destruct() mechanism propably incorrect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-82329@lists.php.net to get a copy of this message | ||
ID: 33824
Updated by: tony2001@php.net
Reported By: rusaxakep at mail dot ru
-Status: Open
+Status: Bogus
Bug Type: Class/Object related
Operating System: Linux
PHP Version: 5.0.4
New Comment:
There is no exact order of destroying object.
It's implemented in this way because of several reasons and one of the
main ones is efficiency.
See more detailed explanations in several reports that were created
before - search the bug DB.
Previous Comments:
------------------------------------------------------------------------
[2005-07-22 18:19:07] rusaxakep at mail dot ru
Please ignore previous comment.
I don't know, maybe is not bug, but in my opinion __destruct() must
call in "FIFO" standart's and not "STACK".
I think isn't correct kill parent's classes, before child classes.
Right?
------------------------------------------------------------------------
[2005-07-22 18:15:50] rusaxakep at mail dot ru
Description:
------------
I don't know, maybe is not bug, but in my opinion __destruct() must
call in "FIFO" standart's and not "Stack".
I think not correct kill parent's classes, and after child classes.
Need a "tree effect", first kill child's classes (subtree), and after
kill parent's classes.
Right? Sorry for bad english, is not native for me.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33824&edit=1