1 /* 2 +----------------------------------------------------------------------+ 3 | Copyright (c) The PHP Group | 4 +----------------------------------------------------------------------+ 5 | This source file is subject to version 3.01 of the PHP license, | 6 | that is bundled with this package in the file LICENSE, and is | 7 | available through the world-wide-web at the following url: | 8 | https://www.php.net/license/3_01.txt | 9 | If you did not receive a copy of the PHP license and are unable to | 10 | obtain it through the world-wide-web, please send a note to | 11 | license@php.net so we can mail you a copy immediately. | 12 +----------------------------------------------------------------------+ 13 | Authors: Stig Sæther Bakken <ssb@php.net> | 14 | Thies C. Arntzen <thies@thieso.net> | 15 | Sterling Hughes <sterling@php.net> | 16 +----------------------------------------------------------------------+ 17 */ 18 19 #ifndef PHP_XML_H 20 #define PHP_XML_H 21 22 #ifdef HAVE_XML 23 24 extern zend_module_entry xml_module_entry; 25 #define xml_module_ptr &xml_module_entry 26 27 #include "php_version.h" 28 #define PHP_XML_VERSION PHP_VERSION 29 30 #include "expat_compat.h" 31 32 #ifdef XML_UNICODE 33 #error "UTF-16 Unicode support not implemented!" 34 #endif 35 36 #else 37 #define xml_module_ptr NULL 38 #endif /* HAVE_XML */ 39 40 #define phpext_xml_ptr xml_module_ptr 41 42 enum php_xml_option { 43 PHP_XML_OPTION_CASE_FOLDING = 1, 44 PHP_XML_OPTION_TARGET_ENCODING, 45 PHP_XML_OPTION_SKIP_TAGSTART, 46 PHP_XML_OPTION_SKIP_WHITE, 47 PHP_XML_OPTION_PARSE_HUGE, 48 }; 49 50 #ifdef LIBXML_EXPAT_COMPAT 51 #define PHP_XML_SAX_IMPL "libxml" 52 #else 53 #define PHP_XML_SAX_IMPL "expat" 54 #endif 55 56 #endif /* PHP_XML_H */ 57