passing by reference
| From: | Chad Cunningham | Date: | Tue, 12 Feb 2002 15:05:06 +0000 |
| Subject: | passing by reference | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-79976@lists.php.net to get a copy of this message | ||
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?
--
Chad Cunningham
ccunning@math.ohio-state.edu
"Well, once again my friend, we find that science is a two-headed beast. One
head is nice, it gives us aspirin and other modern conveniences,...but the
other head of science is bad! Oh beware the other head of science, Arthur, it
bites!"