Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23292 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45887 invoked by uid 1010); 11 May 2006 23:48:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 45870 invoked from network); 11 May 2006 23:48:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 May 2006 23:48:29 -0000 X-PHP-List-Original-Sender: dante@vocalspace.com X-Host-Fingerprint: 69.56.193.72 fox02.stravio.com Linux 2.5 (sometimes 2.4) (4) Received: from ([69.56.193.72:51207] helo=fox02.stravio.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 62/4B-19568-D4DC3644 for ; Thu, 11 May 2006 19:48:29 -0400 Received: from [127.0.0.1] (unknown [66.243.31.162]) by fox02.stravio.com (Postfix) with ESMTP id B609626C32D; Thu, 11 May 2006 18:10:42 -0500 (CDT) Message-ID: <4463C471.7000801@vocalspace.com> Date: Thu, 11 May 2006 18:10:41 -0500 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Marcus Boerger Cc: PHPdev References: <4463BF89.9040906@vocalspace.com> <1677896835.20060512005634@marcus-boerger.de> In-Reply-To: <1677896835.20060512005634@marcus-boerger.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] allow extension writers to ignore E_NOTICE warnings about unset variables From: dante@vocalspace.com ("D. Dante Lorenso") 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? Dante