From: [EMAIL PROTECTED]
Operating system: linux
PHP version: 4.0.6
PHP Bug Type: Variables related
Bug description: QUERY_STRING disappears inside function bodies
In next PHP page test.php something weird happens:
<html><body>
<% // using asp_tags
print "before call: $QUERY_STRING <br>";
function do_it () {
print "inside: $QUERY_STRING <br>";
}
do_it ();
print "after call: $QUERY_STRING <br>";
%>
Note: variables comming from register_globals also
disappear inside the function.
<form action="test.php" method="get">
<input type="hidden" name="name" value="value">
<input type="button" value="< go back" onClick="history.back()">
<input type="submit" value="do it">
</form>
</body></html>
If it is the normal behavior of PHP to make the QUERY_STRING disappear
inside function bodies, then please document it in the PHP manual. If it's
really a bug...that's bad.
Please, let me know something asap.
Frank.
--
Edit bug report at: http://bugs.php.net/?id=12800&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]