Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10253 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35278 invoked by uid 1010); 2 Jun 2004 20:43:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35254 invoked by uid 1007); 2 Jun 2004 20:43:04 -0000 Message-ID: <20040602204304.35253.qmail@pb1.pair.com> To: internals@lists.php.net References: <40BE1285.9010701@iamjochem.com> Date: Wed, 2 Jun 2004 13:43:04 -0700 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Posted-By: 169.229.135.175 Subject: Re: http_build_query unexpected/bad behaviour From: pollita@php.net ("Sara Golemon") > 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