#9091 [Opn->Bgs]: the Contructor of a class is called after! the end of a script
| From: | hholzgra@php.net | Date: | Tue, 01 Oct 2002 00:13:51 +0000 |
| Subject: | #9091 [Opn->Bgs]: the Contructor of a class is called after! the end of a script | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-20834@lists.php.net to get a copy of this message | ||
ID: 9091
Updated by: hholzgra@php.net
Reported By: sauer1@big-web.de
-Status: Open
+Status: Bogus
Bug Type: Other
Operating System: Unix (Apache/1.3.14)
PHP Version: 3.0.16
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
hard to tell without sample code
but sounds more like proxy or browser reload problem
btw: there are no desctructors in php 3 and 4
Previous Comments:
------------------------------------------------------------------------
[2001-02-03 17:53:11] sauer1@big-web.de
I builded a class and in the constructor of the class i made a entry in
a Database. The entry contains among other values the actual time.
Every time i call a script in whitch a instance of this class is made i
get two entries in the database. I wondered why and added outputs to
see when and how often the constructor is called. But in the
script-output i saw that the contructor is called only one time.
As i output the time() at the very end of my script i saw that the
second entry was made after that time!! I thinkt in normal case that is
not possible.
I dont know if this is a bug, but i think this is not the normal
behavior. On my own machine the same script produces only one entry in
the database.
Perhaps the constructor is called instead of the destructor.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=9091&edit=1