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:

    * 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

This one is what you need.

--
Wbr, Antony Dovgal

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to