]> granicus.if.org Git - php/commitdiff
Attempt to fix SKIP
authorXinchen Hui <laruence@php.net>
Thu, 28 Mar 2013 15:22:20 +0000 (23:22 +0800)
committerXinchen Hui <laruence@php.net>
Thu, 28 Mar 2013 15:22:20 +0000 (23:22 +0800)
sapi/cli/tests/bug64529.phpt

index 2f0a962785ac25ce6c65d3d61d6cdf6f33a94b60..7ca13a470bb54676bd7972f5f362df22f108b408 100644 (file)
@@ -2,8 +2,13 @@
 Bug #64529 (Ran out of opcode space)
 --SKIPIF--
 <?php
-if (substr(PHP_OS, 0, 3) == "WIN") die("skip non windows test");
-if (!trim(`which expect`)) die "skip no expect installed";
+if (substr(PHP_OS, 0, 3) == "WIN") {
+       die("skip non windows test");
+}
+exec('which expect', $output, $ret);
+if ($ret) {
+       die "skip no expect installed";
+}
 ?>
 --FILE--
 <?php