cvs: /php4/ext/xml php_xml.h xml.c

From: Date: Tue, 04 Apr 2000 15:42:35 +0000
Subject: cvs: /php4/ext/xml php_xml.h xml.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-13096@lists.php.net to get a copy of this message
thies Tue Apr 4 08:42:35 2000 EDT Modified files: /php4/ext/xml php_xml.h xml.c Log: export xml_utf8_decode for wddx module Index: php4/ext/xml/php_xml.h diff -u php4/ext/xml/php_xml.h:1.9 php4/ext/xml/php_xml.h:1.10 --- php4/ext/xml/php_xml.h:1.9 Sat Feb 19 15:41:23 2000 +++ php4/ext/xml/php_xml.h Tue Apr 4 08:42:05 2000 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_xml.h,v 1.9 2000/02/19 23:41:23 zeev Exp $ */ +/* $Id: php_xml.h,v 1.10 2000/04/04 15:42:05 thies Exp $ */ #ifndef _PHP_XML_H #define _PHP_XML_H @@ -129,6 +129,7 @@ PHP_FUNCTION(xml_parse_into_struct); PHPAPI char *_xml_zval_strdup(zval *val); +PHPAPI char *xml_utf8_decode(const XML_Char *, int, int *, const XML_Char *); #endif /* HAVE_LIBEXPAT */ Index: php4/ext/xml/xml.c diff -u php4/ext/xml/xml.c:1.49 php4/ext/xml/xml.c:1.50 --- php4/ext/xml/xml.c:1.49 Sun Mar 12 07:47:32 2000 +++ php4/ext/xml/xml.c Tue Apr 4 08:42:05 2000 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: xml.c,v 1.49 2000/03/12 15:47:32 sas Exp $ */ +/* $Id: xml.c,v 1.50 2000/04/04 15:42:05 thies Exp $ */ #define IS_EXT_MODULE #include "php.h" @@ -77,7 +77,6 @@ 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 char *xml_utf8_decode(const XML_Char *, int, int *, const XML_Char *); static zval *xml_call_handler(xml_parser *, char *, 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_decode */ -static char * +PHPAPI char * xml_utf8_decode(const XML_Char *s, int len, int *newlen, const XML_Char *encoding) { int pos = len;

« previous php.version4 (#13096) next »