Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion ext/libxml/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,19 @@ if (PHP_LIBXML == "yes") {
if (GREP_HEADER("libxml/xmlversion.h", "#define\\s+LIBXML_VERSION\\s+(\\d+)", PHP_PHP_BUILD + "\\include\\libxml2") &&
+RegExp.$1 >= 20904) {

var libxml_ver = +RegExp.$1; /* capture now; RegExp.$1 gets clobbered below */

EXTENSION("libxml", "libxml.c mime_sniff.c", false /* never shared */, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
AC_DEFINE("HAVE_LIBXML", 1, "Define to 1 if the PHP extension 'libxml' is available.");
ADD_FLAG("CFLAGS_LIBXML", "/D LIBXML_STATIC /D LIBXML_STATIC_FOR_DLL /D HAVE_WIN32_THREADS ");
if (!PHP_LIBXML_SHARED) {
ADD_DEF_FILE("ext\\libxml\\php_libxml2.def");
if (libxml_ver >= 21500) {
/* The HTTP and FTP modules, SAX1, the shell, xmlunicode.h
and various other legacy symbols were removed in 2.15. */
ADD_DEF_FILE("ext\\libxml\\php_libxml2.def");
} else {
ADD_DEF_FILE("ext\\libxml\\php_libxml2_legacy.def");
}
}
PHP_INSTALL_HEADERS("ext/libxml", "php_libxml.h");
} else {
Expand Down
Loading
Loading