it's not defined in php4, only in php5
(you have to manually define it in php4
like this:
static unsigned char second_arg_force_ref[] = { 2, BYREF_NONE,
BYREF_FORCE };
)
in php5 it's defined in
zend_modules.h
As far as usage, you pretty much define it as by reference, and just
set the variable as
On 2/25/2005 2:28 PM, [EMAIL PROTECTED] wrote to CHRIS CRANFORD:
Where si the second_arg_force_ref argument defined? I tried to define an
argument block but I kept getting compiler issues. An example would be nice.
I followed what I saw on zend.com but no cigar.
Chris
-> look at
-> http://cvs
look at
http://cvs.php.net/co.php/php-src/ext/mcve/mcve.c?r=1.28.2.2
the m_completeauthorizations function.
-Brad
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
Hello Chris,
you need to define that signature of your functions by supplying
ZEND_ARG_INFO's to them. look at ZEND_API.h file for those macros.
marcus
Friday, February 25, 2005, 2:22:39 AM, you wrote:
> I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose to
> pass variable
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?
Thanks
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.ph