Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6237 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93470 invoked by uid 1010); 5 Dec 2003 16:20:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 93370 invoked from network); 5 Dec 2003 16:20:55 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 5 Dec 2003 16:20:55 -0000 Received: (qmail 8023 invoked from network); 5 Dec 2003 16:20:47 -0000 Received: from localhost (HELO andi-laptop.zend.com) (127.0.0.1) by localhost with SMTP; 5 Dec 2003 16:20:47 -0000 Message-ID: <5.1.0.14.2.20031205180618.0449b5a0@127.0.0.1> X-Sender: andi@127.0.0.1 (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 05 Dec 2003 18:07:07 +0200 To: "John Huntjens" ,internals@lists.php.net In-Reply-To: <20031205104511.14283.qmail@pb1.pair.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] status of __destruct From: andi@zend.com (Andi Gutmans) References: <20031205104511.14283.qmail@pb1.pair.com> Destructors are only called during a clean shutdown (i.e. no E_ERROR). They should actually be called by an exit() call. Can you post a short reproducing script (maybe with a print instead of a touch()) that displays this problem? Andi At 11:45 AM 12/5/2003 +0100, John Huntjens wrote: >What the status of destruct, should it work? > >I am asking because all the simple provided examples work, but in a more >complex situation __destruct is never called. >Is destruct called on a object when a exit is issued? > >for debugging I use this destruct: > > function __destruct() > { > touch("/tmp/destruct_app.txt"); > } > >I am using todays snap (06.30) > >Gr, > >JOhn > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php