From b2785c3d4c60c07d72623eba8d325f0b37247ae2 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 18 Apr 2007 14:51:29 +0000 Subject: Fixed tests (win32) --- ext/standard/tests/file/bug22414.phpt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ext/standard/tests/file/bug22414.phpt') 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)) { -- cgit v1.2.1