Bug 76559
| Summary: | Single entry form POST gives incorrect variable content | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Need Real Name <josh.howlett> |
| Component: | php | Assignee: | Joe Orton <jorton> |
| Status: | CLOSED DUPLICATE | QA Contact: | David Lawrence <dkl> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Linux | ||
| URL: | http://bugs.php.net/bug.php?id=18648 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2006-02-21 18:50:01 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
Need Real Name
2002-10-23 13:40:32 UTC
I can't reproduce a problem here with single-field forms. When you say "variable $bar" you are aware that register globals is off in the default configuration (/etc/php.ini), so you have to retrieve form variable using "$_POST['bar']"? I have register globals set to On. Have you checked the bug report in the PHP bugzilla: http://bugs.php.net/bug.php?id=18648 ...so I'm not the only one with RH8.0 experiencing this problem. Let me clarify the description of the bug: if I create a single field form, the variable value gets mangled to the following format: <value>foo=<value>. Say I enter "bar" in a text field, I get "barfoo=foo" returned. Many thanks, josh. Sorry, a mistake. In my example I gave in the previous posting, the returned variable should read "barfoo=bar". josh. Yes, I've read the upstream bug reports too, but I can't reproduce the problem here on a vanilla 8.0 system. Maybe it's a random corruption problem. See: http://napalm.cse.bris.ac.uk/test.php http://napalm.cse.bris.ac.uk/test.txt thanks, josh. Ah, that's interesting - thanks for posting that. A diff between the script output on your system and mine reveals: -//--></style><title>phpinfo()</title></head><body>fishfoo=fish +//--></style><title>phpinfo()</title></head><body>fish ...that it works on mine but not yours... and that our servers are using different locales: -<tr valign="baseline" bgcolor="#cccccc"><td bgcolor="#ccccff"><b>_ENV["LANG"]</b></td><td>C?</td></tr> +<tr valign="baseline" bgcolor="#cccccc"><td bgcolor="#ccccff"><b>_ENV["LANG"]</b></td><td>en_US.UTF-8?</td></tr> I'm still unable to trigger the problem even in the C locale. I changed the system locale as a workaround to another (unrelated) problem. See: http://www.ee.ethz.ch/~slist/mrtg/msg21135.html josh. The PHP package works correctly in this configuration in the latest erratum. Thanks for the report. *** This bug has been marked as a duplicate of 82967 *** Changed to 'CLOSED' state since 'RESOLVED' has been deprecated. |