Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29074 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92474 invoked by uid 1010); 27 Apr 2007 13:50:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92459 invoked from network); 27 Apr 2007 13:50:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Apr 2007 13:50:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=jochem@iamjochem.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jochem@iamjochem.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain iamjochem.com from 194.109.193.121 cause and error) X-PHP-List-Original-Sender: jochem@iamjochem.com X-Host-Fingerprint: 194.109.193.121 mx1.moulin.nl Linux 2.6 Received: from [194.109.193.121] ([194.109.193.121:51858] helo=mx1.moulin.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/BA-29041-5AFF1364 for ; Fri, 27 Apr 2007 09:50:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mx1.moulin.nl (Postfix) with ESMTP id EDBC224D868; Fri, 27 Apr 2007 15:50:32 +0200 (CEST) X-Virus-Scanned: amavisd-new at moulin.nl Received: from mx1.moulin.nl ([127.0.0.1]) by localhost (mx1.moulin.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p21SuR3mxgoJ; Fri, 27 Apr 2007 15:50:29 +0200 (CEST) Received: from [192.168.1.22] (bspr.xs4all.nl [194.109.161.228]) by mx1.moulin.nl (Postfix) with ESMTP id 109C524D844; Fri, 27 Apr 2007 15:50:29 +0200 (CEST) Message-ID: <4631FF9E.9010905@iamjochem.com> Date: Fri, 27 Apr 2007 15:50:22 +0200 User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Michael Wallner CC: internals@lists.php.net References: <4631EE17.20400@gmx.net> <4631EFA1.4040507@zend.com> <4631F2BC.9070405@iamjochem.com> In-Reply-To: X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] http arrays From: jochem@iamjochem.com (Jochem Maas) Michael Wallner wrote: > Jochem Maas wrote: > >> $args = array('foo' => array('bar' => array(1,2,3), 'quz' => array(1,2,3))); >> echo '/foo.php?'.http_build_query($args); >> >> >> foo.php --- 8< --- >> >> var_dump($_GET['foo']); >> >> >> the var_dump() output used to be a neat nested array, but since 5.1.3 [although I remember >> it as 5.1.6] http_build_query() makes htmlentities of the square brackets so therefore >> the var_dump() gives you a string. > > Works as expected here with v5.2 I'll take your word on it (although I can't be sure exactly what it is that you expected), which means the change has been reverted, or the input parsing stuff has been changed to recognize escaped square brackets as if they were not escaped - I know for sure that http_build_query() did escape quare brackets in 5.1.6 and that url query strings that included escaped square brackets were not parsed into [nested] arrays. a bug closed bug shows that this was changed for 5.1.3: http://bugs.php.net/bug.php?id=36656 > > Regards,