php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch 61720.diff for *XML functions Bug #61720

Patch version 2012-04-13 10:57 UTC

Return to Bug #61720 | Download this patch
Patch Revisions:

Developer: ab@php.net

diff --git a/ext/libxml/tests/bug61367-read.phpt b/ext/libxml/tests/bug61367-read.phpt
index 722b8e7..3deecfc 100644
--- a/ext/libxml/tests/bug61367-read.phpt
+++ b/ext/libxml/tests/bug61367-read.phpt
@@ -15,6 +15,7 @@ class StreamExploiter {
 		$doc->resolveExternals = true;
 		$doc->substituteEntities = true;
 		$dir = htmlspecialchars(dirname(getcwd()));
+		$dir = str_replace('\\', '/', $dir); // fix for windows
 		$doc->loadXML( <<<XML
 <!DOCTYPE doc [
 	<!ENTITY file SYSTEM "file:///$dir/bad">
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 11:01:31 2024 UTC