Re: unicode and xml extensions

From: Date: Mon, 24 Jul 2006 17:43:17 +0000
Subject: Re: unicode and xml extensions
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-24940@lists.php.net to get a copy of this message
imo, this would probably the easiest and best way to handle the conversions. Rob Andrei Zmievski wrote:
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


« previous php.internals (#24940) next »