Re: [PHP-DEV] PHP Extensions & Pass-By-Reference

2005-02-25 Thread Brad House
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

Re: [PHP-DEV] PHP Extensions & Pass-By-Reference

2005-02-25 Thread chris . cranford
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

Re: [PHP-DEV] PHP Extensions & Pass-By-Reference

2005-02-25 Thread Brad House
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

Re: [PHP-DEV] PHP Extensions & Pass-By-Reference

2005-02-25 Thread Marcus Boerger
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

[PHP-DEV] PHP Extensions & Pass-By-Reference

2005-02-25 Thread Chris Cranford
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