Bug #15024: Can't use ParameterPassedByReference()
| From: | ron at imperators dot ca | Date: | Mon, 14 Jan 2002 01:32:42 +0000 |
| Subject: | Bug #15024: Can't use ParameterPassedByReference() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-76954@lists.php.net to get a copy of this message | ||
From: ron@imperators.ca
Operating system: Caldera Linux
PHP version: 4.1.1
PHP Bug Type: *Compile Issues
Bug description: Can't use ParameterPassedByReference()
I have a few extensions that I've written for PHP, and under 4.1.1, when
linking I get the following error:
modules/php4/libphp4.a(cmtest.o): In function `php3_cm_sendsms':
..../php-4.1.1/ext/cmtest/cmtest.c:185: undefined reference to
`ParameterPassedByReference'
I built a minimal extension with ext_skel, and only one simple function
that had contained the code:
if(!ParameterPassedByReference(ht, 2))
{
zend_error(E_WARNING, "Parameter 2 wasn't passed by
reference");
RETURN_NULL();
}
This was just to make sure that none of my other code could have been
causing the problem. This made the problem clearly reproducible. This
exact code works fine under php4.03pl1. (This code was extracted from the
API docs on the zend website, I think).
Thanks,
Ron.
--
Edit bug report at: http://bugs.php.net/?id=15024&edit=1