iliaa           Wed Aug  2 15:22:56 2006 UTC

  Modified files:              
    /php-src/ext/xml    xml.c php_xml.h 
  Log:
  MFB: Expose the xml_utf8_encode function.
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/xml/xml.c?r1=1.164&r2=1.165&diff_format=u
Index: php-src/ext/xml/xml.c
diff -u php-src/ext/xml/xml.c:1.164 php-src/ext/xml/xml.c:1.165
--- php-src/ext/xml/xml.c:1.164 Tue Jun 13 13:12:20 2006
+++ php-src/ext/xml/xml.c       Wed Aug  2 15:22:56 2006
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: xml.c,v 1.164 2006/06/13 13:12:20 dmitry Exp $ */
+/* $Id: xml.c,v 1.165 2006/08/02 15:22:56 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 *);
@@ -499,7 +498,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.31&r2=1.32&diff_format=u
Index: php-src/ext/xml/php_xml.h
diff -u php-src/ext/xml/php_xml.h:1.31 php-src/ext/xml/php_xml.h:1.32
--- php-src/ext/xml/php_xml.h:1.31      Tue Jun 13 13:12:20 2006
+++ php-src/ext/xml/php_xml.h   Wed Aug  2 15:22:56 2006
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: php_xml.h,v 1.31 2006/06/13 13:12:20 dmitry Exp $ */
+/* $Id: php_xml.h,v 1.32 2006/08/02 15:22:56 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

Reply via email to