mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Expose the xml_utf8_encode function.
This commit is contained in:
parent
e5635a81af
commit
e79e9fade6
2 changed files with 2 additions and 2 deletions
|
@ -141,6 +141,7 @@ PHP_FUNCTION(xml_parse_into_struct);
|
||||||
|
|
||||||
PHPAPI char *_xml_zval_strdup(zval *val);
|
PHPAPI char *_xml_zval_strdup(zval *val);
|
||||||
PHPAPI char *xml_utf8_decode(const XML_Char *, int, int *, const XML_Char *);
|
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 */
|
#endif /* HAVE_LIBEXPAT */
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,6 @@ inline static unsigned short xml_encode_iso_8859_1(unsigned char);
|
||||||
inline static char xml_decode_iso_8859_1(unsigned short);
|
inline static char xml_decode_iso_8859_1(unsigned short);
|
||||||
inline static unsigned short xml_encode_us_ascii(unsigned char);
|
inline static unsigned short xml_encode_us_ascii(unsigned char);
|
||||||
inline static char xml_decode_us_ascii(unsigned short);
|
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_call_handler(xml_parser *, zval *, zend_function *, int, zval **);
|
||||||
static zval *_xml_xmlchar_zval(const XML_Char *, int, const XML_Char *);
|
static zval *_xml_xmlchar_zval(const XML_Char *, int, const XML_Char *);
|
||||||
static int _xml_xmlcharlen(const XML_Char *);
|
static int _xml_xmlcharlen(const XML_Char *);
|
||||||
|
@ -497,7 +496,7 @@ static xml_encoding *xml_get_encoding(const XML_Char *name)
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* {{{ xml_utf8_encode */
|
/* {{{ 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;
|
int pos = len;
|
||||||
char *newbuf;
|
char *newbuf;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue