At 10:05 AM 2/12/2002 -0500, Chad Cunningham wrote:
>4.1.1 seems to have gotten rid of ParameterPassedByReference. What is the
>proper, backwards compatable way to handle this now?
>
>i.e. my code does this:
>
>
>case 3:
> if (zend_get_parameters_ex(3, &username, &password, &status) ==
>FAILURE) {
> RETURN_FALSE;
> }
> if (!ParameterPassedByReference(ht, 3)) {
> php_error(E_WARNING, "Error variable must be passed by
>reference");
> RETURN_FALSE;
> }
> pval_destructor(*status);
> break;
>...
>
>what would be the proper way to rewrite this to work with 4.0.x and 4.1.x?
You can check status->is_ref == 1.
Andi
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php