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

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




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

[2007-02-02 08:42:17] [EMAIL PROTECTED]

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.

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

[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