Re: cvs: php-src /ext/curl interface.c

From: Date: Fri, 08 Dec 2006 05:15:51 +0000
Subject: Re: cvs: php-src /ext/curl interface.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-41977@lists.php.net to get a copy of this message
You can do it much simpler with: convert_to_string_with_converter_ex(current, UG(utf8_conv)); -Andrei On Dec 7, 2006, at 4:46 PM, Ilia Alshanetsky wrote:
+ + if (Z_TYPE_PP(current) == IS_UNICODE) { + zend_unicode_to_string_ex(UG(utf8_conv), &postval, &data_len, Z_USTRVAL_PP(current), Z_USTRLEN_PP(current), &status); + } else { + convert_to_string_ex(current); + postval = Z_STRVAL_PP(current); + data_len = Z_STRLEN_PP(current); + }


« previous php.cvs (#41977) next »