iliaa Wed Aug 2 15:21:54 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/xml xml.c php_xml.h Log: Expose the xml_utf8_encode function. http://cvs.php.net/viewvc.cgi/php-src/ext/xml/xml.c?r1=1.157.2.4.2.1&r2=1.157.2.4.2.2&diff_format=u Index: php-src/ext/xml/xml.c diff -u php-src/ext/xml/xml.c:1.157.2.4.2.1 php-src/ext/xml/xml.c:1.157.2.4.2.2 --- php-src/ext/xml/xml.c:1.157.2.4.2.1 Thu Jun 15 18:33:09 2006 +++ php-src/ext/xml/xml.c Wed Aug 2 15:21:54 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: xml.c,v 1.157.2.4.2.1 2006/06/15 18:33:09 dmitry Exp $ */ +/* $Id: xml.c,v 1.157.2.4.2.2 2006/08/02 15:21:54 iliaa Exp $ */ #define IS_EXT_MODULE @@ -79,7 +79,6 @@ inline static char xml_decode_iso_8859_1(unsigned short); inline static unsigned short xml_encode_us_ascii(unsigned char); inline static char xml_decode_us_ascii(unsigned short); -static XML_Char *xml_utf8_encode(const char *, int, int *, const XML_Char *); static zval *xml_call_handler(xml_parser *, zval *, zend_function *, int, zval **); static zval *_xml_xmlchar_zval(const XML_Char *, int, const XML_Char *); static int _xml_xmlcharlen(const XML_Char *); @@ -497,7 +496,7 @@ /* }}} */ /* {{{ xml_utf8_encode */ -static XML_Char *xml_utf8_encode(const char *s, int len, int *newlen, const XML_Char *encoding) +PHPAPI char *xml_utf8_encode(const char *s, int len, int *newlen, const XML_Char *encoding) { int pos = len; char *newbuf; http://cvs.php.net/viewvc.cgi/php-src/ext/xml/php_xml.h?r1=1.28.2.2.2.1&r2=1.28.2.2.2.2&diff_format=u Index: php-src/ext/xml/php_xml.h diff -u php-src/ext/xml/php_xml.h:1.28.2.2.2.1 php-src/ext/xml/php_xml.h:1.28.2.2.2.2 --- php-src/ext/xml/php_xml.h:1.28.2.2.2.1 Thu Jun 15 18:33:09 2006 +++ php-src/ext/xml/php_xml.h Wed Aug 2 15:21:54 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_xml.h,v 1.28.2.2.2.1 2006/06/15 18:33:09 dmitry Exp $ */ +/* $Id: php_xml.h,v 1.28.2.2.2.2 2006/08/02 15:21:54 iliaa Exp $ */ #ifndef PHP_XML_H #define PHP_XML_H @@ -141,6 +141,7 @@ PHPAPI char *_xml_zval_strdup(zval *val); PHPAPI char *xml_utf8_decode(const XML_Char *, int, int *, const XML_Char *); +PHPAPI char *xml_utf8_encode(const char *s, int len, int *newlen, const XML_Char *encoding); #endif /* HAVE_LIBEXPAT */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php