Re: allow extension writers to ignore E_NOTICE warnings about unset variables

From: Date: Thu, 11 May 2006 23:23:47 +0000
Subject: Re: allow extension writers to ignore E_NOTICE warnings about unset variables
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 12.05.2006 03:05, D. Dante Lorenso wrote:
Antony Dovgal wrote:
On 12.05.2006 02:49, D. Dante Lorenso wrote:
    * #define ZEND_SEND_BY_REF     1
This one is what you need. I don't think it is. The variable did not exist before the function was called and should STILL not exist afterwards. I believe when you pass by reference, the variable will exist after the call. Only if you created it during the call. <?php function foo(&$arg) { } foo($nonex); var_dump(isset($nonex)); ?> bool(false)
This is bad since future calls to 'isset' will suddenly start returning TRUE when they shouldn't.
-- Wbr, Antony Dovgal

Thread (8 messages)

« previous php.internals (#23290) next »