Grokbase Groups PHP php-cvs May 2016
FAQ
Commit: 1d4d8c74362893c0b07cff4aafb6e054c3515e0b
Author: Anatol Belski <ab@php.net> Tue, 31 May 2016 18:42:40 +0200
Parents: f2a814df335fdfbb062681413ae5d47e5b593044
Branches: PHP-7.0 master

Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1d4d8c74362893c0b07cff4aafb6e054c3515e0b

Log:
fix test portability

Changed paths:
   M ext/xmlrpc/tests/bug72155.phpt


Diff:
diff --git a/ext/xmlrpc/tests/bug72155.phpt b/ext/xmlrpc/tests/bug72155.phpt
index 38c90be..5a71423 100644
--- a/ext/xmlrpc/tests/bug72155.phpt
+++ b/ext/xmlrpc/tests/bug72155.phpt
@@ -6,7 +6,12 @@ if (!extension_loaded("xmlrpc")) print "skip";
  ?>
  --FILE--
  <?php
-$var0 = fopen("/etc/passwd","r");
+if (false !== strpos(PHP_OS, "WIN")) {
+ $fl = "c:\\windows\\explorer.exe";
+} else {
+ $fl = "/etc/passwd";
+}
+$var0 = fopen($fl,"r");
  $var1 = xmlrpc_encode($var0);
  var_dump($var1);
  ?>

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-cvs @
categoriesphp
postedMay 31, '16 at 4:54p
activeMay 31, '16 at 4:54p
posts1
users1
websitephp.net

1 user in discussion

Anatol Belski: 1 post

People

Translate

site design / logo © 2019 Grokbase