From:             zidokid at hotmail dot com
Operating system: Windows XP Professional
PHP version:      4.3.7
PHP Bug Type:     URL related
Bug description:  Variable URL problem

Description:
------------
I am using an Apache 2 Server, in the http.conf file, i installed php
using this method: 

LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php

Whenever I try to define a variable at the URL such as
http://www.website.com/main.php?txt=something
then it DOESNT show the variable on the screen, however, when i define a
variable from inside the source code, such as <?php $txt = something; ?>
then the variable DOES show on the page. Please tell me how to get rid of
this bug.

Reproduce code:
---------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd";>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
<?php
echo $txt;
?>
</body>
</html>


Expected result:
----------------
When i type http://zidokid.kicks-ass.net/t.php?txt=something

I expected that i would get a page that says "something".

Actual result:
--------------
Nothing appeared on the page.

-- 
Edit bug report at http://bugs.php.net/?id=29009&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29009&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29009&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29009&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29009&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29009&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29009&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29009&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29009&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29009&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29009&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29009&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29009&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29009&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29009&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29009&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29009&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29009&r=float

Reply via email to