|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-07 03:39 UTC] vvhung at yahoo dot com
[2006-11-07 13:00 UTC] gopalv82 at yahoo dot com
[2006-11-09 02:40 UTC] vvhung at yahoo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 23:00:02 2025 UTC |
Description: ------------ Could not get expected value, when call $_REQUEST["foo"] in a user-built function included from another file. (Still works fine if the function is in the same file) Reproduce code: --------------- * function.php: <? function getNumber($var) { return intval($var); } ?> * index.php: <? include("function.php"); echo getNumber($_REQUEST["foo"]) . "<BR>"; echo getNumber($_GET["foo"]) . "<BR>"; ?> Calling http://test.server/index.php?foo=2 from browser, problem would happened with the second and later request to that URL. Expected result: ---------------- 2 2 Actual result: -------------- First request: 2 2 Second and later request: 0 2