Re: allow extension writers to ignore E_NOTICE warnings about unset variables
| From: | Antony Dovgal | Date: | Thu, 11 May 2006 22:56:05 +0000 |
| Subject: | Re: allow extension writers to ignore E_NOTICE warnings about unset variables | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23286@lists.php.net to get a copy of this message | ||
On 12.05.2006 02:49, D. Dante Lorenso wrote:
All, Is there a way to define a function in an extension which would not require a passed in variable to exist? In other words, can ZE be modified to allow extensions to not trigger E_NOTICE warnings if an unset variable is passed to a function which does not care if the var is set? I can specify preferences about whether variables are passed by reference or not using macros like:This one is what you need. -- Wbr, Antony Dovgal* PHP_FE(..., first_arg_force_ref) * PHP_FE(..., third_arg_force_by_ref_rest) * PHP_FE(..., first_through_third_args_force_ref)Which probably boil down somewhere into:* #define ZEND_SEND_BY_VAL 0 * #define ZEND_SEND_BY_REF 1