Bug #16659: href parameters failing

From: Date: Wed, 17 Apr 2002 13:41:57 +0000
Subject: Bug #16659: href parameters failing
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-5194@lists.php.net to get a copy of this message
From: alistair@maclean-nj.com Operating system: Linux 2.4.18 PHP version: 4.2.0 PHP Bug Type: Apache2 related Bug description: href parameters failing Built 4.2.0RC4 with Apache 2.0.35 Build files below. Testing an existing site I noticed that I was dropping parameters passed between pages. Using an anchor like: <a href="somepage.php?valuea=something">Click me</a> An code in the other page like: echo "value=:".$valuea.":"; Is not return the expected output (value=:something:) Instead I get (value=::) It looks like the name/value pair is being lost. I have attached two test pages. These work in Apache 1.3.20/PHP 4.1.2. There seem to be no errors in the apache logs. 127.0.0.1 - - [17/Apr/2002:09:02:30 -0400] "GET /php/atest.php HTTP/1.1" 200 117 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020311" 127.0.0.1 - - [17/Apr/2002:09:02:32 -0400] "GET /php/btest.php?value1=first HTTP/1.1" 200 96 "http://localhost/php/atest.php" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020311" BUILDS. --------------------------------------------------- Apache: ./configure \ "--with-layout=RedHat" \ "--enable-shared=max" \ "--enable-rule=SHARED_CORE" \ "--enable-info" \ "--disable-userdir" \ "--enable-so" \ "--enable-vhost-alias" \ "--enable-cgi" \ "--enable-ssl" \ "--enable-usertrack" \ "--enable-unique-id" \ "$@" ---------------------------------- PHP: ./configure --with-mysql=/usr --enable-trans-sid --with-apxs2 Test code :atest.php ----------------------------------- <html> <head> <title>Test</title> </head> <body> <? $value1 = "first"; echo "<a href=\"btest.php?value1=$value1\">Test With 1</a>"; ?> </body> </html> Test Code: btest.php ------------------------------------------- <html> <head> <title>Test Second Page</title> </head> <body> <?php echo "First Param = :".$value1.":"; ?> </body> </html> -- Edit bug report at http://bugs.php.net/?id=16659&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16659&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16659&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16659&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16659&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16659&r=support Expected behavior: http://bugs.php.net/fix.php?id=16659&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16659&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16659&r=submittedtwice

« previous php.bugs (#5194) next »