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