diff options
| author | Rui Hirokawa <hirokawa@php.net> | 2001-01-05 06:36:51 +0000 | 
|---|---|---|
| committer | Rui Hirokawa <hirokawa@php.net> | 2001-01-05 06:36:51 +0000 | 
| commit | 32c3af8c39a99ff531220d9c56cdb879d5d8d440 (patch) | |
| tree | 96687583d3aa63489354692ea35bc01336aa7804 /ext/xml/php_xml.h | |
| parent | 4fe3182b1f1eafab5d7fa411d4f572bd17ee66f5 (diff) | |
| download | php-git-32c3af8c39a99ff531220d9c56cdb879d5d8d440.tar.gz | |
added libxml-1.95 support and some new functions related to namespace support. changed config.m4 to support xml extension as shared module.
Diffstat (limited to 'ext/xml/php_xml.h')
| -rw-r--r-- | ext/xml/php_xml.h | 16 | 
1 files changed, 15 insertions, 1 deletions
| diff --git a/ext/xml/php_xml.h b/ext/xml/php_xml.h index aacf900dea..253a9fc1d7 100644 --- a/ext/xml/php_xml.h +++ b/ext/xml/php_xml.h @@ -35,8 +35,12 @@ extern zend_module_entry xml_module_entry;  #if defined(HAVE_LIBEXPAT) && defined(PHP_XML_INTERNAL) +#ifdef HAVE_LIBEXPAT2 +#include <expat.h> +#else  #include <xmltok.h>  #include <xmlparse.h> +#endif  #ifdef PHP_WIN32  #define PHP_XML_API __declspec(dllexport) @@ -67,7 +71,10 @@ typedef struct {  	zval *notationDeclHandler;  	zval *externalEntityRefHandler;  	zval *unknownEncodingHandler; - +#ifdef HAVE_LIBEXPAT2 +	zval *startNamespaceDeclHandler; +	zval *endNamespaceDeclHandler; +#endif  	zval *object;  	zval *data; @@ -107,6 +114,9 @@ enum php_xml_option {  #define XML_MAXLEVEL 255 /* XXX this should be dynamic */  PHP_FUNCTION(xml_parser_create); +#ifdef HAVE_LIBEXPAT2 +PHP_FUNCTION(xml_parser_create_ns); +#endif  PHP_FUNCTION(xml_set_object);  PHP_FUNCTION(xml_set_element_handler);  PHP_FUNCTION(xml_set_character_data_handler); @@ -115,6 +125,10 @@ PHP_FUNCTION(xml_set_default_handler);  PHP_FUNCTION(xml_set_unparsed_entity_decl_handler);  PHP_FUNCTION(xml_set_notation_decl_handler);  PHP_FUNCTION(xml_set_external_entity_ref_handler); +#ifdef HAVE_LIBEXPAT2 +PHP_FUNCTION(xml_set_start_namespace_decl_handler); +PHP_FUNCTION(xml_set_end_namespace_decl_handler); +#endif  PHP_FUNCTION(xml_parse);  PHP_FUNCTION(xml_get_error_code);  PHP_FUNCTION(xml_error_string); | 
