Re: allow extension writers to ignore E_NOTICE warnings about unset variables
| From: | Antony Dovgal | 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 internals+get-23290@lists.php.net to get a copy of this message | ||
On 12.05.2006 03:05, D. Dante Lorenso wrote:
Antony Dovgal wrote:Only if you created it during the call. <?php function foo(&$arg) { } foo($nonex); var_dump(isset($nonex)); ?> bool(false)On 12.05.2006 02:49, D. Dante Lorenso wrote: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.This one is what you need.* #define ZEND_SEND_BY_REF 1
This is bad since future calls to 'isset' will suddenly start returning TRUE when they shouldn't.-- Wbr, Antony Dovgal