ID:               50407
 Updated by:       [email protected]
 Reported By:      php at gimme dot org
-Status:           Open
+Status:           Bogus
 Bug Type:         URL related
 Operating System: Win
 PHP Version:      5.2.11
 New Comment:

Not setting is same as setting it empty. No bug.


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

[2009-12-08 08:31:10] php at gimme dot org

Description:
------------
http_build_query() ignore the `key` in array( `key` => array() )..

Reproduce code:
---------------
<?php

$param = array(
        '_COOKIE' => array(),
        '_HEADER' => array(
                'User-Agent' => 'Mozilla...' ,
        ),
);

echo http_build_query( $param );

?>

Expected result:
----------------
_COOKIE%5B0%D=&_HEADER%5BUser-Agent%5D=Mozilla...

Actual result:
--------------
_HEADER%5BUser-Agent%5D=Mozilla...


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


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

Reply via email to