On Wed, 30 Jun 2004, Gareth Ardron wrote:
> Does the examples I gave you before not count ?
Yes. It does not count.
> in this case, the __destruct() function within someOtherClass does
> absolutly bugger all.
You can't reference one object from another's destructor. PHP makes no
promises about
On Mon, 2004-06-28 at 12:25, Florian Schaper wrote:
> > __destruct will get executed during request shutdown after the
> > communication has been shutdown. The only way to be able to write
> > from within __destruct is to deinitialize it at the end of the
> > script and therefore before the reques
On Tue, 2004-06-29 at 18:55, Marcus Boerger wrote:
> Hello Florian,
>
> there is no problem in calling resource destructors/terminators in your
> destructors. You simply cannot output text to your pages from them. If
> this is not true then we need to fix it. For example if an object of
> yours ho
Marcus Boerger wrote:
> Hello Florian,
>
> there is no problem in calling resource destructors/terminators in
> your destructors. You simply cannot output text to your pages from
> them. If this is not true then we need to fix it. For example if an
> object of yours holds a database connection and
Hello Florian,
there is no problem in calling resource destructors/terminators in your
destructors. You simply cannot output text to your pages from them. If
this is not true then we need to fix it. For example if an object of
yours holds a database connection and your destructor executes some
SQL
Gareth Ardron wrote:
> On Mon, 2004-06-28 at 12:25, Florian Schaper wrote:
>
[...]
>( though I'd prefer the way destruct is called to be
> changed ;-) )
For what it's worth, i'd second that.
./regards
Florian
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http:
Marcus Boerger wrote:
> Hello Gareth,
>
> __destruct will get executed during request shutdown after the
> communication has been shutdown. The only way to be able to write
> from within __destruct is to deinitialize it at the end of the
> script and therefore before the request is being finished.
Hello Gareth,
__destruct will get executed during request shutdown after the
communication has been shutdown. The only way to be able to write
from within __destruct is to deinitialize it at the end of the
script and therefore before the request is being finished. To
do so you can use 'unset($obje
ok,
If this is fixed in cvs, I appologise - google wasn't suggesting that
this has come up before.
I've just been playing around with the __destruct() function a little
bit, and seeing exactly what I could do with it.
Basically, I have a company info class, and a logger class. The logger
clas