Re: call_user_function_ex() affects zval value
| From: | François Laupretre | Date: | Fri, 18 Dec 2015 11:30:50 +0000 |
| Subject: | Re: call_user_function_ex() affects zval value | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-89841@lists.php.net to get a copy of this message | ||
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] array, its value is different after this call. I haven't seen this issue when zval is a string. I realize the context probably matters here, but I'm having trouble narrowing down what could be doing this. Any suggestions on how to debug this? Thanks, AdamIf your code is public, can you give a pointer to the problematic call ? Or at least what your 'zval' points to on return. Regards François