Doc #75191 [Nab]: all
| From: | salathe@php.net | Date: | Mon, 11 Sep 2017 18:28:27 +0000 |
| Subject: | Doc #75191 [Nab]: all | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14964@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75191&edit=1
ID: 75191
Updated by: salathe@php.net
Reported by: dev at null dot com
Summary: all
Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
Operating System: all
PHP Version: Next Major Version
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2017-09-11 16:59:46] requinix@php.net
Not really, no.
------------------------------------------------------------------------
[2017-09-11 16:48:22] 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 ]]] )
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75191&edit=1