Re: [PHP-DEV] Translating optional zval ** with zend_parse_parameters() to PHP 7

2016-11-25 Thread Thomas Hruska
On 11/25/2016 4:32 PM, Jakub Zelenka wrote: On 25 Nov 2016 20:43, "Kalle Sommer Nielsen" wrote: 2016-11-25 13:30 GMT+01:00 Thomas Hruska : I need to be able to *modify* the original variable that was passed in. I already use "|l" and zend_long elsewhere in the extension Ah my bad I misread

Re: [PHP-DEV] Translating optional zval ** with zend_parse_parameters() to PHP 7

2016-11-25 Thread Jakub Zelenka
On 25 Nov 2016 20:43, "Kalle Sommer Nielsen" wrote: 2016-11-25 13:30 GMT+01:00 Thomas Hruska : > I need to be able to *modify* the original variable that was passed in. I already use "|l" and zend_long > elsewhere in the extension Ah my bad I misread it! In that case take a look at where such i

Re: [PHP-DEV] Translating optional zval ** with zend_parse_parameters() to PHP 7

2016-11-25 Thread Kalle Sommer Nielsen
2016-11-25 13:30 GMT+01:00 Thomas Hruska : > I need to be able to *modify* the original variable that was passed in. I > already use "|l" and zend_long > elsewhere in the extension Ah my bad I misread it! In that case take a look at where such is implemented in php-src, dns_get_record() is an e

Re: [PHP-DEV] Translating optional zval ** with zend_parse_parameters() to PHP 7

2016-11-25 Thread Thomas Hruska
On 11/25/2016 12:27 AM, Kalle Sommer Nielsen wrote: Hi Thomas 2016-11-25 4:13 GMT+01:00 Thomas Hruska : I'm working on updating an extension for PHP 7 compatibility. I have one function that uses an optional zval ** with zend_parse_parameters(). zval **zprevcount = NULL; int c

Re: [PHP-DEV] Translating optional zval ** with zend_parse_parameters() to PHP 7

2016-11-24 Thread Kalle Sommer Nielsen
Hi Thomas 2016-11-25 4:13 GMT+01:00 Thomas Hruska : > I'm working on updating an extension for PHP 7 compatibility. I have one > function that uses an optional zval ** with zend_parse_parameters(). > > zval **zprevcount = NULL; > int count; > int argc = ZEND_NUM_ARGS(); >