|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16860 h2 variable is global???
Submitted: 2002-04-26 14:20 UTC Modified: 2002-07-07 12:59 UTC
Avg. Score:1.5 ± 0.5
Reproduced:0 of 1 (0.0%)
From: hudsonm at steemer dot com Assigned:
Status: No Feedback Package: Variables related
PHP Version: 4.1.2 OS: i386-redhat-linux-gnu
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: hudsonm at steemer dot com
New email:
PHP Version: OS:


 [2002-04-26 14:20 UTC] hudsonm at steemer dot com
Passing variables from an html form to a php script, I had a problem with a variable named 'h2'.
It would not have the value from the form but would be a 'o' (lowercase o). After looking at my code multiple times I printed out the h2 variable using a script like this.

PRINT "h1 = $h1<br>";
PRINT "h2 = $h2<br>";
PRINT "h3 = $h3<br><br>";
$h1 = 111;
$h2 = 222;
$h3 = 333;
PRINT "h1 = $h1<br>";
PRINT "h2 = $h2<br>";
PRINT "h3 = $h3<br>";

output from above script
h1 = 
h2 = o
h3 = 

h1 = 111
h2 = 222
h3 = 333

Note that h2 has a value that is not assigned. This is constant, it is always a 'o'.
Have noticed this on prior versions of PHP (4.0.6,???) that my hosting service has had installed.

Hudson McVay

Build Date Feb 28 2002 
Configure Command  './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-gd=../gd-1.8.4' '--with-jpeg-dir=/usr/local' '--with-xpm-dir=/usr/X11R6' '--with-png-dir=/usr' '--with-imap=../imap-2001.BETA.SNAP-0105220031' '--with-ming=../ming-0.1.1' '--enable-magic-quotes' '--with-mysql' '--with-xslt-sablot' '--enable-safe-mode' '--enable-track-vars' '--with-ttf' '--enable-versioning' '--with-zlib' 
Server API Apache 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-26 16:32 UTC]
Could you please post the exact php script you used + the form file?

 [2002-04-26 16:38 UTC]
My guess is that you have a cookie named h2 - stick a phpinfo() on that page and take a close look at the request headers near the bottom.
 [2002-07-07 12:59 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 08 13:03:41 2021 UTC