php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75191 all
Submitted: 2017-09-11 16:48 UTC Modified: 2017-09-11 18:28 UTC
From: dev at null dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Next Major Version OS: all
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: dev at null dot com
New email:
PHP Version: OS:

 

 [2017-09-11 16:48 UTC] dev at null dot com
Description:
------------
---
From manual page: http://www.php.net/function.http-build-query
---
string http_build_query ( mixed $query_data [, string $numeric_prefix [, string $arg_separator [, int $enc_type = PHP_QUERY_RFC1738 ]]] )

>>>  [,  <<< SHOULD BE : " , [ "

Test script:
---------------
string http_build_query ( mixed $query_data [, string $numeric_prefix [, string $arg_separator [, int $enc_type = PHP_QUERY_RFC1738 ]]] )

>>>  [,  <<< SHOULD BE : " , [ "

Expected result:
----------------
string http_build_query ( mixed $query_data [, string $numeric_prefix [, string $arg_separator [, int $enc_type = PHP_QUERY_RFC1738 ]]] )

>>>  [,  <<< SHOULD BE : " , [ "

Actual result:
--------------
string http_build_query ( mixed $query_data [, string $numeric_prefix [, string $arg_separator [, int $enc_type = PHP_QUERY_RFC1738 ]]] )


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-09-11 16:59 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2017-09-11 16:59 UTC] requinix@php.net
Not really, no.
 [2017-09-11 18:28 UTC] salathe@php.net
The square bracket pair is a convention used in the PHP manual to denote optional function parameters, as detailed on the "How to read a function definition (prototype)" page [1]. Of note, it is not supposed to be valid PHP syntax.

Thanks for taking the time to file a bug report.

[1] http://php.net/manual/en/about.prototypes.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 14:01:29 2024 UTC