ID: 18566
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Windows
PHP Version: 4.2.1
New Comment:
This is how CGI binary works. Use CLI (in the cli folder as of 4.3.0)
if you don't want those "strange" results.
Previous Comments:
------------------------------------------------------------------------
[2002-08-13 08:36:02] [EMAIL PROTECTED]
with cgi 4.1.2 on win i get only strange results for a+b+c
php test.php a+b+c
array(4) {
[0]=>
string(8) "test.php"
[1]=>
string(1) "a"
[2]=>
string(1) "b"
[3]=>
string(1) "c"
}
------------------------------------------------------------------------
[2002-08-13 08:09:11] [EMAIL PROTECTED]
Ups, I double checked my PHP version and it as 4.1.2 and not 4.2.1, so
I had more strange behaviours with the CGI version... Seems like some
things were corrected between 4.1.2 and 4.2.1...
------------------------------------------------------------------------
[2002-08-13 08:01:45] [EMAIL PROTECTED]
with cgi-version(4.2.1, win2k):
test.php a b c
array(4) {
[0]=>
string(8) "test.php"
[1]=>
string(1) "a"
[2]=>
string(1) "b"
[3]=>
string(1) "c"
}
php test.php a+b+c
array(4) {
[0]=>
string(8) "test.php"
[1]=>
string(1) "a"
[2]=>
string(1) "b"
[3]=>
string(1) "c"
}
php test.php a=b=c
array(2) {
[0]=>
string(8) "test.php"
[1]=>
string(5) "a=b=c"
}
php test.php a;b;c
array(2) {
[0]=>
string(8) "test.php"
[1]=>
string(5) "a;b;c"
}
Only a+b+c seems to bahave "strange".
with cli-version(4.2.1,win2k):
php-cli test.php a b c
array(4) {
[0]=>
string(8) "test.php"
[1]=>
string(1) "a"
[2]=>
string(1) "b"
[3]=>
string(1) "c"
}
php-cli test.php a+b+c
array(2) {
[0]=>
string(8) "test.php"
[1]=>
string(5) "a+b+c"
}
php-cli test.php a=b=c
array(2) {
[0]=>
string(8) "test.php"
[1]=>
string(5) "a=b=c"
}
php-cli test.php a;b;c
array(2) {
[0]=>
string(8) "test.php"
[1]=>
string(5) "a;b;c"
)
The same results for cgi and cli version in 4.2.2 on win.
Only a+b+c seems to be strange with the cgi.
Friedhelm
------------------------------------------------------------------------
[2002-08-13 07:26:47] [EMAIL PROTECTED]
This was one of the reasons CLI was created in the first place - to get
rid of all CGI specific (mis)features.
This issue should probably be mentioned in the command line chapter.
------------------------------------------------------------------------
[2002-08-13 07:21:20] [EMAIL PROTECTED]
I tested this with the CGI one, probably it's not a problem with the
CLI.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/18566
--
Edit this bug report at http://bugs.php.net/?id=18566&edit=1
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php