Re: [PHP-DEV] call_user_function_ex() affects zval value

2015-12-18 Thread Adam Baratz
> > If your code is public, can you give a pointer to the problematic call ? > Or at least what your 'zval' points to on return. > It's the PECL memcache extension: https://pecl.php.net/package/memcache All of the existing test suite passes, except for this one: http://git.php.net/?p=pecl/caching

Re: [PHP-DEV] call_user_function_ex() affects zval value

2015-12-18 Thread François Laupretre
Hi, Le 17/12/2015 22:52, Adam Baratz a écrit : Hi, I'm working on PHP7 compatibility for an extension (which I didn't write). I discovered an issue with a call like this: call_user_function_ex(EG(function_table), NULL, zval, &retval, 5, params, 0, NULL); When zval refers to a [object, string]

[PHP-DEV] call_user_function_ex() affects zval value

2015-12-17 Thread Adam Baratz
Hi, I'm working on PHP7 compatibility for an extension (which I didn't write). I discovered an issue with a call like this: call_user_function_ex(EG(function_table), NULL, zval, &retval, 5, params, 0, NULL); When zval refers to a [object, string] array, its value is different after this call. I