Bug #16860: h2 variable is global???
| From: | hudsonm at steemer dot com | Date: | Fri, 26 Apr 2002 18:20:11 +0000 |
| Subject: | Bug #16860: h2 variable is global??? | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-6156@lists.php.net to get a copy of this message | ||
From: hudsonm@steemer.com
Operating system: i386-redhat-linux-gnu
PHP version: 4.1.2
PHP Bug Type: Variables related
Bug description: h2 variable is global???
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.
Thanks
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
--
Edit bug report at http://bugs.php.net/?id=16860&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16860&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16860&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16860&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16860&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16860&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16860&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16860&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16860&r=submittedtwice