|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-22 02:22 UTC] mike@php.net
[2008-07-25 12:32 UTC] michal dot kocarek at brainbox dot cz
[2008-07-27 08:53 UTC] mike@php.net
[2008-11-22 09:17 UTC] mike@php.net
[2009-08-19 08:16 UTC] michal dot kocarek at brainbox dot cz
[2009-08-20 07:21 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Jan 02 10:00:01 2026 UTC |
Description: ------------ PHP crashes when assigning params to HttpQueryString in certain way. When query param (with scalar value) is in HttpQueryString, and then array with same name is assigned to that object, PHP goes away. (See "reproduce code"). Reproduce code: --------------- <? // init $query = new HttpQueryString(false); $query->set('foo=scalar_value'); // cast scalar variable to array (let php crash) $query->set('foo[]=crash'); // same result after this: // $query->set('foo[0]=crash'); // $query->set('foo[nah]=crash'); // $query->set(array('foo'=>array(1))); // Note that it does not crash when doing this: // $query->set('foo=scalar_value&foo[]=something'); Expected result: ---------------- PHP should not crash and $query should contain "foo[]=crash" urlencoded string. Actual result: -------------- PHP crashes after calling last set() method.