Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c

From: Date: Fri, 04 Aug 2006 17:03:42 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c
References: 1 2  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5158@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.
Thanks for the 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))
I amended the modifier parsing code. Now you can specify them in any order. -Andrei

« previous php.zend-engine.cvs (#5158) next »