|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-02-02 08:42 UTC] tony2001@php.net
[2007-02-02 09:24 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 20:00:01 2025 UTC |
Description: ------------ empty()/isset() doesn't work (returns opposite of expected) on superglobals when used inside functions. Reproduce code: --------------- <?php // view script with: test.php?foo=bar function test() { if (!empty($_GET)) { print_r($_GET); } } test(); ?> Expected result: ---------------- When run with something populating $_GET, I expect to see a proper printout from the print_r(). Actual result: -------------- Nothing.