]> granicus.if.org Git - php/commitdiff
better check for skip
authorRaghubansh Kumar <kraghuba@php.net>
Wed, 11 Jul 2007 09:13:47 +0000 (09:13 +0000)
committerRaghubansh Kumar <kraghuba@php.net>
Wed, 11 Jul 2007 09:13:47 +0000 (09:13 +0000)
ext/standard/tests/file/popen_pclose_error-sunos.phpt
ext/standard/tests/file/popen_pclose_error.phpt

index b99bd201125c49e6e41fb07e85dbc82a7c83d011..85bea31bec4fc063d5f2f12dfd390fc27a4a8ad5 100644 (file)
@@ -2,10 +2,9 @@
 Test popen() and pclose function: error conditions
 --SKIPIF--
 <?php
-if( substr(PHP_OS, 0, 3) != 'Sun')
-  die("skip Only valid for Sun Solaris");
+if( strtoupper( substr(PHP_OS, 0, 3) ) != 'SUN' )
+  die("skip Only Valid for Sun Solaris");
 ?>
-
 --FILE--
 <?php
 /*
index ff4d8d234bbb2bd0e7568ade1ef2fc86b3b49975..3680c091eff2b19b275ec3aab56f0f7f623063eb 100644 (file)
@@ -2,10 +2,9 @@
 Test popen() and pclose function: error conditions
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == 'WIN' || substr(PHP_OS, 0, 3) == 'Sun')
-  die("skip Not Valid for Windows and Sun Solaris");
+if(substr(PHP_OS, 0, 3) == 'WIN' || strtoupper( substr(PHP_OS, 0, 3) ) == 'SUN')
+  die("skip Not Valid for Windows & Sun Solaris");
 ?>
-
 --FILE--
 <?php
 /*