Bug 72921
Summary: | PHP vars from command line broke on php-4.1.2 | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Matthew Crawford <mcrawford> |
Component: | php | Assignee: | Phil Copeland <copeland> |
Status: | CLOSED DUPLICATE | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.2 | CC: | rparish |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-08-29 20:09:16 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Matthew Crawford
2002-08-29 01:57:42 UTC
Slightly differnt version [root@alpha root]# cat test.php #!/usr/bin/php <?php print "test1 = [" . $_GET['valueone'] . "]\n"; print "test2 = [" . $_GET['valuetwo'] . "]\n"; var_dump($_GET); ?> [root@alpha root]# ./test.php "&valueone=testone&valuetwo=testtwo" X-Powered-By: PHP/4.1.2 Content-type: text/html test1 = [testone] test2 = [] array(2) { ["_/test_php_"]=> string(0) "" ["valueone"]=> string(7) "testone" } I see this also happens in 4.2.2 Also the add extra variable to end seems to vanish [root@alpha root]# ./test.php "&valueone=testone&valuetwo=testtwo&fred=" X-Powered-By: PHP/4.1.2 Content-type: text/html test1 = [testone] test2 = [testtwo] array(3) { ["_/test_php_"]=> string(0) "" ["valueone"]=> string(7) "testone" ["valuetwo"]=> string(7) "testtwo" } (wtf did fred= go?) Phil =--= |