]> granicus.if.org Git - php/commitdiff
ensure the test uses correct SAPI
authorAnatol Belski <ab@php.net>
Tue, 24 Mar 2015 15:25:56 +0000 (16:25 +0100)
committerAnatol Belski <ab@php.net>
Tue, 24 Mar 2015 21:02:28 +0000 (22:02 +0100)
Zend/tests/bug60978.phpt

index 5dc6fe31e7166c9ed2f8054d9c42a4385a10e83d..676808c7a30b412538987b6483a278eb30d6e6e3 100644 (file)
@@ -1,5 +1,11 @@
 --TEST--
 Bug #60978 (exit code incorrect)
+--SKIPIF--
+<?php
+       if ("cli" != php_sapi_name()) {
+               echo "skip CLI only";
+       }
+?>
 --FILE--
 <?php
 $php = getenv('TEST_PHP_EXECUTABLE');