com php-src: fork test: sapi/cgi/tests/005-win32.phpt
| From: | Anatol Belski | Date: | Wed, 30 Sep 2015 09:13:29 +0000 |
| Subject: | com php-src: fork test: sapi/cgi/tests/005-win32.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89239@lists.php.net to get a copy of this message | ||
Commit: 59541795e2970425ff0318121f40fc4aacdb6b14
Author: Anatol Belski <ab@php.net> Wed, 30 Sep 2015 09:16:46 +0200
Parents: e80306cbe89c75e3cbedf526134b3c4bcc1d6082
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=59541795e2970425ff0318121f40fc4aacdb6b14
Log:
fork test
Changed paths:
A sapi/cgi/tests/005-win32.phpt
Diff:
diff --git a/sapi/cgi/tests/005-win32.phpt b/sapi/cgi/tests/005-win32.phpt
new file mode 100644
index 0000000..b7efb9b
--- /dev/null
+++ b/sapi/cgi/tests/005-win32.phpt
@@ -0,0 +1,34 @@
+--TEST--
+using invalid combinations of cmdline options
+--SKIPIF--
+<?php
+
+if (substr(PHP_OS, 0, 3) != 'WIN') {
+ die ("skip Windows only");
+}
+
+include "skipif.inc";
+?>
+--FILE--
+<?php
+
+include "include.inc";
+
+$php = get_cgi_path();
+reset_env_vars();
+
+var_dump(
$php -n -a -f "wrong");
+var_dump($php -n -f "wrong" -a);
+
+echo "Done\n";
+?>
+--EXPECTF--
+string(51) "Interactive mode enabled
+
+No input file specified.
+"
+string(51) "Interactive mode enabled
+
+No input file specified.
+"
+Done