]> granicus.if.org Git - php/commitdiff
- MFB: wrong file commited (and fix test, thx Tony for the head up)
authorPierre Joye <pajoye@php.net>
Sat, 16 Aug 2008 10:54:34 +0000 (10:54 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 16 Aug 2008 10:54:34 +0000 (10:54 +0000)
ext/standard/tests/file/popen_pclose_error-win32-debug.phpt

index 2c04f524476ae042ca39c48980ccd30088be3287..efe504f5ba699f81a3b076aedccb30ebecb21def 100644 (file)
@@ -3,9 +3,10 @@ Test popen() and pclose function: error conditions
 
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) != 'WIN' && PHP_DEBUG)) die("skip Not Valid for Linux");
+if(substr(PHP_OS, 0, 3) != 'WIN' && PHP_DEBUG) die("skip Not Valid for Linux");
 if(!PHP_DEBUG) die("skip Not Valid for release builds");
-if (!(strpos('MSVC9', $inf) || strpos('MSVC8', $inf))) die("skip Not Valid for build done with VC < 8");
+ob_start();phpinfo(INFO_GENERAL);$inf=ob_get_contents(); ob_end_clean();
+if (!(strpos($inf, 'MSVC9') || strpos($inf, 'MSVC8'))) die("skip Not Valid for build done with VC < 8");
 ?>
 
 --FILE--