Skip to content
Closed
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
2 changes: 1 addition & 1 deletion ext/dom/tests/DOMDocument_relaxNGValidate_error2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var_dump($result);
--EXPECTF--
Warning: DOMDocument::relaxNGValidate(): I/O %s : failed to load %s

Warning: DOMDocument::relaxNGValidate(): xmlRelaxNGParse: could not load %s/foo.rng in %s on line %d
Warning: DOMDocument::relaxNGValidate(): xmlRelaxNGParse: could not load %sfoo.rng in %s on line %d

Warning: DOMDocument::relaxNGValidate(): Invalid RelaxNG in %s on line %d
bool(false)
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ echo $html->saveHtml(), "\n";
<container xmlns="some:ns" xmlns:bar="another:ns">
<x>
<subcontainer>
<test xmlns="x:y"/>
<test xmlns="xy:z"/>
<child2/>
</subcontainer>
<subcontainer2>
Expand All @@ -38,7 +38,7 @@ echo $html->saveHtml(), "\n";
<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p>foo<container xmlns="some:ns" xmlns:bar="another:ns">
<x>
<subcontainer>
<test xmlns="x:y"/>
<test xmlns="xy:z"/>
<child2/>
</subcontainer>
<subcontainer2>
Expand All @@ -49,7 +49,7 @@ echo $html->saveHtml(), "\n";
<html><head></head><body><p>foo<container xmlns="some:ns" xmlns:bar="another:ns">
<x>
<subcontainer>
<test xmlns="x:y"></test>
<test xmlns="xy:z"></test>
<child2></child2>
</subcontainer>
<subcontainer2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ echo $html->saveHtml(), "\n";
<container xmlns="some:ns" xmlns:bar="another:ns">
<x>
<subcontainer>
<test xmlns="x:y"/>
<test xmlns="xy:z"/>
<child2/>
</subcontainer>
<subcontainer2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ echo $html->saveHtml(), "\n";
<container xmlns="some:ns" xmlns:bar="another:ns">
<x>
<subcontainer>
<test xmlns="x:y"/>
<test xmlns="xy:z"/>
<child2/>
</subcontainer>
<subcontainer2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ echo $html->saveHtml(), "\n";
<container xmlns="some:ns" xmlns:bar="another:ns">
<x>
<subcontainer>
<test xmlns="x:y"/>
<test xmlns="xy:z"/>
<child2/>
</subcontainer>
<subcontainer2>
Expand All @@ -38,7 +38,7 @@ echo $html->saveHtml(), "\n";
<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p>foo<container xmlns="some:ns" xmlns:bar="another:ns">
<x>
<subcontainer>
<test xmlns="x:y"/>
<test xmlns="xy:z"/>
<child2/>
</subcontainer>
<subcontainer2>
Expand All @@ -49,7 +49,7 @@ echo $html->saveHtml(), "\n";
<html><head></head><body><p>foo<container xmlns="some:ns" xmlns:bar="another:ns">
<x>
<subcontainer>
<test xmlns="x:y"></test>
<test xmlns="xy:z"></test>
<child2></child2>
</subcontainer>
<subcontainer2>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ echo $html->saveHtml(), "\n";
<container xmlns="some:ns" xmlns:bar="another:ns">
<x>
<subcontainer>
<test xmlns="x:y"/>
<test xmlns="xy:z"/>
<child2/>
</subcontainer>
<subcontainer2>
Expand All @@ -37,7 +37,7 @@ echo $html->saveHtml(), "\n";
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p>foo<x xmlns="some:ns">
<subcontainer>
<test xmlns="x:y"/>
<test xmlns="xy:z"/>
<child2/>
</subcontainer>
<subcontainer2>
Expand All @@ -46,7 +46,7 @@ echo $html->saveHtml(), "\n";
<child xmlns="some:ns2"/></x></p></body></html>
<html><head></head><body><p>foo<x>
<subcontainer>
<test xmlns="x:y"></test>
<test xmlns="xy:z"></test>
<child2></child2>
</subcontainer>
<subcontainer2>
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/tests/modern/html/serializer/sample.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<container xmlns="some:ns" xmlns:bar="another:ns">
<x>
<subcontainer>
<test xmlns="x:y" />
<test xmlns="xy:z" />
<child2 />
</subcontainer>
<subcontainer2>
Expand Down
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