Re: http_build_query unexpected/bad behaviour

From: Date: Wed, 02 Jun 2004 20:43:04 +0000
Subject: Re: http_build_query unexpected/bad behaviour
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-10253@lists.php.net to get a copy of this message
> the issue is that the array $y below results in an empty string: > > $x = array('e' => array('kf' => '')); > $y = array('e' => array('kf' => array())); > > echo '\''. http_build_query($x). "'\n"; > echo '\''. http_build_query($y) . "'\n"; > > running on: PHP 5.0.0RC3-dev (cli) (built: Jun 1 2004 18:04:30) (DEBUG) > ---- > would anybody care to comment as to whether this is what is intended? > I would definately call that intended. What would you expect the resultant query string to look like? -Sara

« previous php.internals (#10253) next »