Re: zend_get_parameters_ex rework
| From: | Lester Caine | Date: | Thu, 12 Feb 2015 12:42:27 +0000 |
| Subject: | Re: zend_get_parameters_ex rework | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-82529@lists.php.net to get a copy of this message | ||
On 12/02/15 11:35, Nikita Popov wrote:
> I've still got a question about the &string_arg on line 1.9 and if it
> should be changed to a string but that change needs working through the
> following code.
>
>
> Yes, this should be changed to a string. E.g. use the 'S' zpp modifier
> and declare the variable as 'zend_string *str'. Then modify the places
> where it is used from Z_STRVAL_P(...) to str->val and Z_STRLEN_P(...) to
> str->len.
OK that makes sense ... and I though I was on a roll, except while I can
convert one of the uses, another is feed by a zval which I then need to
convert to a zend_string, but I think I can just change b_val to
Z_STR*(b_val) but the compiler is saying that Z_STR is not defined?
I've spent half an hour trying to dig around but not managed to find
what I should be using :(
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk