From: Nuno Lopes Date: Sun, 6 Jul 2008 16:59:39 +0000 (+0000) Subject: add test for the shebang thing X-Git-Tag: php-5.3.0alpha1~477 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=180a7bef35e46271fd4f8c5ff0d6ab323f6927a2;p=php add test for the shebang thing --- diff --git a/sapi/cli/tests/021.phpt b/sapi/cli/tests/021.phpt new file mode 100644 index 0000000000..81adc27ada --- /dev/null +++ b/sapi/cli/tests/021.phpt @@ -0,0 +1,39 @@ +--TEST-- +CLI shell shebang +--SKIPIF-- + +--FILE-- +\n". + "adeus\n"; + +file_put_contents($filename, $script); +chmod($filename, 0777); + +echo `$filename`; + +echo "\nDone\n"; +?> +--CLEAN-- + +--EXPECTF-- +ola +2 +adeus + +Done