Re: PHP Extensions & Pass-By-Reference
| From: | Richard Lynch | Date: | Fri, 25 Feb 2005 20:50:02 +0000 |
| Subject: | Re: PHP Extensions & Pass-By-Reference | ||
| References: | 1 | Groups: | php.general php.internals |
| Request: | Send a blank email to internals+get-15195@lists.php.net to get a copy of this message | ||
Chris Cranford wrote:
> I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose to
> pass variables by reference to my function without enabling call-time pass
> by reference in the PHP.INI file?
I think the definition in the C syntax of PHP_FUNCTION will do that for you.
You'll probably need to use some ZEND_xxx macro.
Check out simple functions (error_log springs to mind) that use pass by
reference.
--
Like Music?
http://l-i-e.com/artists.htm