Re: short_open_tag

From: Date: Thu, 27 Mar 2008 09:20:21 +0000
Subject: Re: short_open_tag
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-36608@lists.php.net to get a copy of this message
Hello Jared, in theory, if you could make sure the instance gets destructoed prior to the end of the main script. After script end the order of destructor calls is not deterministic or better said it is but not depending on memory management. marcus Wednesday, March 26, 2008, 11:57:46 PM, you wrote: > >> -----Original Message----- >> From: Stanislav Malyshev [mailto:stas@zend.com] >> Sent: 26 March 2008 20:28 >> To: Lukas Kahwe Smith >> Cc: Derick Rethans; Marcus Boerger; Hannes Magnusson; PHP Internals >> Subject: Re: [PHP-DEV] short_open_tag >> >> Hi! >> >> > do note that we have increasingly large numbers of way to >> jump out of >> > the scope (exceptions, recoverable errors). this obviously >> makes these >> > kinds of cleanups potentially easier to forget. >> >> You'd need to catch and process exceptions anyway, and >> recoverable errors, as far as I understand, are not meant as >> jumping out of scope (you can run the handler, but the you're >> back to where the error was, right?). >> However, exceptions are a good point - actually, the first >> good objection to this thing. Need to think if this can be >> solved easily. >> -- >> Stanislav Malyshev, Zend Software Architect >> stas@zend.com http://www.zend.com/ >> (408)253-8829 MSN: stas@zend.com >> >> -- > You use a class constructor to change the ini setting, and the destructor to > revert it back. > That way once the instance is out of scope the change will be automatically > reverted? > Jared Best regards, Marcus

« previous php.internals (#36608) next »