diff --git a/ext/xsl/config.w32 b/ext/xsl/config.w32
index 3eb0aafeba9..dc16abdbb9b 100644
--- a/ext/xsl/config.w32
+++ b/ext/xsl/config.w32
@@ -20,6 +20,10 @@ if (PHP_XSL != "no") {
AC_DEFINE("HAVE_XSL", 1, "Define if xsl extension is enabled");
if (! PHP_XSL_SHARED) {
ADD_FLAG("CFLAGS_XSL", "/D DOM_EXPORTS /D LIBXML_STATIC");
+ } else {
+ if (PHP_DEBUG == "yes") {
+ ADD_FLAG("LDFLAGS_XSL", "/nodefaultlib:msvcrt");
+ }
}
} else {
WARNING("xsl not enabled; libraries and headers not found");
diff --git a/ext/xsl/tests/area_list.xsl b/ext/xsl/tests/area_list.xsl
index 45b6cffefaa..e0c88c6215a 100644
--- a/ext/xsl/tests/area_list.xsl
+++ b/ext/xsl/tests/area_list.xsl
@@ -1,10 +1,10 @@
-
-
-
-
-
-
-
- HERE
-
-
+
+
+
+
+
+
+
+ HERE
+
+
diff --git a/ext/xsl/tests/area_name.xml b/ext/xsl/tests/area_name.xml
index 55e38cda695..76cea58511e 100644
--- a/ext/xsl/tests/area_name.xml
+++ b/ext/xsl/tests/area_name.xml
@@ -1,9 +1,12 @@
-
-
-
- 13
- "Автово" м.
- m."Avtovo"
-
-
-
+
+
+
+
+ 13
+ "Автово" м.
+ m."Avtovo"
+
+
+
+
+