]> granicus.if.org Git - php/commitdiff
there is a length limit on the shebang line, ignore the tests for >= 127
authorFerenc Kovacs <tyrael@php.net>
Thu, 20 Oct 2011 18:09:44 +0000 (18:09 +0000)
committerFerenc Kovacs <tyrael@php.net>
Thu, 20 Oct 2011 18:09:44 +0000 (18:09 +0000)
sapi/cli/tests/021.phpt

index a4442b0e02d153574d70846a2a90baa14d0f27b7..2ddd68890384ee534fa4f1932e90947863a537e7 100644 (file)
@@ -6,6 +6,10 @@ include 'skipif.inc';
 if (substr(PHP_OS, 0, 3) == 'WIN') {
        die ("skip not for Windows");
 }
+
+if (strlen("#!".getenv('TEST_PHP_EXECUTABLE')) > 127) {
+        die ("skip shebang is too long, see http://www.in-ulm.de/~mascheck/various/shebang/#results");
+}
 ?>
 --FILE--
 <?php