com php-src: Fix bug 61720 ext\libxml\tests\bug61367-read.phpt fails: ext/libxml/tests/bug61367-read.phpt
| From: | Anatoliy Belsky | Date: | Mon, 16 Apr 2012 13:45:03 +0000 |
| Subject: | com php-src: Fix bug 61720 ext\libxml\tests\bug61367-read.phpt fails: ext/libxml/tests/bug61367-read.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-68794@lists.php.net to get a copy of this message | ||
Commit: bceafee879785b176e6b4564908d0b2c82cb6a0b
Author: Anatoliy Belsky <ab@php.net> Mon, 16 Apr 2012 15:45:03 +0200
Parents: 9c8907ec10aa7af751c9717293c707fe717831e4
Branches: PHP-5.3 PHP-5.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bceafee879785b176e6b4564908d0b2c82cb6a0b
Log:
Fix bug 61720 ext\libxml\tests\bug61367-read.phpt fails
Bugs:
https://bugs.php.net/61720
https://bugs.php.net/61367
Changed paths:
M ext/libxml/tests/bug61367-read.phpt
Diff:
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">