ID:               40311
 Updated by:       [EMAIL PROTECTED]
 Reported By:      tretton at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Arrays related
 Operating System: WinXP SP2
 PHP Version:      6CVS-2007-02-01 (snap)
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

Make sure you actually have _GET variables.


Previous Comments:
------------------------------------------------------------------------

[2007-02-01 23:52:59] tretton at gmail dot com

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.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40311&edit=1

Reply via email to