php_xml.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #ifndef PHP_XML_H
  19. #define PHP_XML_H
  20. #ifdef HAVE_XML
  21. extern zend_module_entry xml_module_entry;
  22. #define xml_module_ptr &xml_module_entry
  23. #include "php_version.h"
  24. #define PHP_XML_VERSION PHP_VERSION
  25. #include "expat_compat.h"
  26. #ifdef XML_UNICODE
  27. #error "UTF-16 Unicode support not implemented!"
  28. #endif
  29. #else
  30. #define xml_module_ptr NULL
  31. #endif /* HAVE_XML */
  32. #define phpext_xml_ptr xml_module_ptr
  33. #endif /* PHP_XML_H */