|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-03-27 12:40 UTC] dev dot php at ange7 dot com
-PHP Version: 5.5.10
+PHP Version: 5.5.9
[2014-03-27 12:40 UTC] dev dot php at ange7 dot com
[2014-06-24 15:07 UTC] dev dot php at ange7 dot com
[2014-07-28 07:39 UTC] martijn dot otto at copernica dot com
[2015-05-24 13:47 UTC] cmb@php.net
[2015-05-24 14:09 UTC] cmb@php.net
-Status: Open
+Status: Verified
-Operating System: Linux Debian Wheezy
+Operating System: *
-PHP Version: 5.5.9
+PHP Version: 5.6.9
[2015-05-24 14:09 UTC] cmb@php.net
[2015-05-24 14:10 UTC] cmb@php.net
-Type: Bug
+Type: Documentation Problem
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 18:00:02 2025 UTC |
Description: ------------ When you call http_build_query() method with array which contain one object, http_build_query don't call «__toString» method Test script: --------------- <?php class foo { public function __toString() { return "bar"; } } $params = array(); $params['a'] = 'b'; $params['foo'] = new foo(); $query = http_build_query($params); var_dump($params, $query); Expected result: ---------------- a=b&foo=bar Actual result: -------------- a=b