Re: passing by reference
| From: | Andi Gutmans | Date: | Wed, 13 Feb 2002 18:05:42 +0000 |
| Subject: | Re: passing by reference | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-80020@lists.php.net to get a copy of this message | ||
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:You can check status->is_ref == 1. Andiif (zend_get_parameters_ex(3, &username, &password, &status) ==FAILURE) {RETURN_FALSE; } if (!ParameterPassedByReference(ht, 3)) { php_error(E_WARNING, "Error variable must be passed byreference");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?