summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/bug22414.phpt
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-04-18 14:51:29 +0000
committerDmitry Stogov <dmitry@php.net>2007-04-18 14:51:29 +0000
commitb2785c3d4c60c07d72623eba8d325f0b37247ae2 (patch)
tree15c67cc415dc5d1cc9c1d773c304797dd38a0627 /ext/standard/tests/file/bug22414.phpt
parent41d27878dee99910f7a0377a0b3a2ae0e5d456c3 (diff)
downloadphp-git-b2785c3d4c60c07d72623eba8d325f0b37247ae2.tar.gz
Fixed tests (win32)
Diffstat (limited to 'ext/standard/tests/file/bug22414.phpt')
-rw-r--r--ext/standard/tests/file/bug22414.phpt9
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/standard/tests/file/bug22414.phpt b/ext/standard/tests/file/bug22414.phpt
index 0775fc8a7a..b60b865e74 100644
--- a/ext/standard/tests/file/bug22414.phpt
+++ b/ext/standard/tests/file/bug22414.phpt
@@ -16,8 +16,13 @@ output_handler=
/* Binary Data Test */
- $cmd = $php . ' -n -r \"readfile(@getenv(\'TEST_PHP_EXECUTABLE\')); \"';
- $cmd = $php . ' -n -r \' passthru("'.$cmd.'"); \' > '.$tmpfile ;
+ if (substr(PHP_OS, 0, 3) != 'WIN') {
+ $cmd = $php . ' -n -r \"readfile(@getenv(\'TEST_PHP_EXECUTABLE\')); \"';
+ $cmd = $php . ' -n -r \' passthru("'.$cmd.'"); \' > '.$tmpfile ;
+ } else {
+ $cmd = $php . ' -n -r \"readfile(@getenv(\\\\\\"TEST_PHP_EXECUTABLE\\\\\\")); \"';
+ $cmd = $php . ' -n -r " passthru(\''.$cmd.'\');" > '.$tmpfile ;
+ }
exec($cmd);
if (md5_file($php) == md5_file($tmpfile)) {