Maybe. An alternate way would be to add modifier to 's' that makes it
accept a converter to use for conversion.
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s>", &str,
&str_len, UG(utf8_conv)) == FAILURE) {
return;
}
This does mean that the caller will have to instantiate the converter
themselves, but might be more efficient if there are multiple 's'
parameters needing to use the same converter.
-Andrei
On Jul 22, 2006, at 2:23 PM, Marcus Boerger wrote:
Hello Andrei,
don't we have a char left for UTF-8 (maybe 8) as it would be a case
that
we will have to use very often and checking for a string in braces
will
take some time.
best regards
marcus
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php