Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c
| From: | Rob Richards | Date: | Fri, 04 Aug 2006 13:39:48 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-5155@lists.php.net to get a copy of this message | ||
The parameters get corrupted if anything but a unicode string is passed
for the type.
See attached patch.
Also, just to be clear on the usage of this. In order to allow NULL to
be used for a string argument, it would have to be written as "s!&" ?
So the following would be correct where:
name is required
value is optional and may be NULL
uri is optional
zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(),
"Os&|s!&s&", &id, dom_element_class_entry, &name, &name_len,
UG(utf8_conv), &value, &value_len, UG(utf8_conv), &uri, &uri_len,
UG(utf8_conv))
Rob
Andrei Zmievski wrote:
> andrei Wed Aug 2 17:36:28 2006 UTC
>
> Modified files:
> /ZendEngine2 zend_API.c
> Log:
> Add '&' modifier (for 's' type) that will apply the specified
> converter
> during conversion of Unicode strings.
>
>