Re: allow extension writers to ignore E_NOTICE warnings about unset variables
| From: | Marcus Boerger | Date: | Thu, 11 May 2006 23:21:08 +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-23289@lists.php.net to get a copy of this message | ||
Hello D.,
Friday, May 12, 2006, 1:10:41 AM, you wrote:
> Marcus Boerger wrote:
>> no, the compiler generates code that makes the executor generate the
>> variable and complain prior to performing the call.
>>
> The executor doesn't complain about unset variables prior to calling
> functions by reference, so I was thinking it could be modified to also
> not complain when calling functions that don't care about set
> variables. Naturally, the unset variable would evaluate as NULL and be
> passed as such, just there would be no E_NOTICE.
>> In a zend extension you could try to hook into that process.
>>
> How do you mean? Got any pointers?
Sorry no. Maybe Sara captures that in her book. Only places i could
imagine to touch what you need is Saras pecl/run-kit.
Best regards,
Marcus