php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #40305 http_build_query outut changed - docs don't reflect this
Submitted: 2007-02-01 12:13 UTC Modified: 2007-03-24 08:36 UTC
From: jochem at iamjochem dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: not applicable
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jochem at iamjochem dot com
New email:
PHP Version: OS:

 

 [2007-02-01 12:13 UTC] jochem at iamjochem dot com
Description:
------------
prior to version 5.1.3 http_build_query did not url encode square brackets - this was 'fixed' in 5.1.3 in accordance with http://www.faqs.org/rfcs/rfc3986.html.

the manual still show an example (Example 3. on http://php.net/http_build_query [english docs]) that http_build_query output doesn't encode the square brackets.

I kindly request that the docs be updated to show the actual output generated (with regard to square brackets) in current php versions and that a note is added to explain that the urlencoding of square brackets was added in version 5.1.3 

the following bug report explains wqhat the 'problem' was a indicates that it was 'fixed':

http://bugs.php.net/bug.php?id=36656

thank you for taking the time to consider this.

kind regards,
Jochem

Reproduce code:
---------------
not applicable


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-24 08:36 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

"5.1.3 - Square brackets are escaped." in ChangeLog, example fixed.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Aug 04 04:00:03 2025 UTC