Doc #69011 [NEW]: contraddiction in echo documentation
| From: | teo8976 at gmail dot com | Date: | Sun, 08 Feb 2015 02:35:26 +0000 |
| Subject: | Doc #69011 [NEW]: contraddiction in echo documentation | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-11930@lists.php.net to get a copy of this message | ||
From: teo8976 at gmail dot com
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:contraddiction in echo documentation
Description:
------------
---
From manual page: http://www.php.net/function.echo
---
This:
"""
Description
void echo ( string $arg1 [, string $... ] )
"""
is in contraddiction with this:
"""
Additionally, if you want to pass more than one parameter to echo, the
parameters must not be enclosed within parentheses.
"""
The second is true, so the first must be corrected.
It should read something like:
"""
Description
void echo ( string $arg1)
void echo string $arg1 [, string $... ]
"""
And by the way, why on earth not changing the behavior so that it does
accept parenthesis with more than one parameter??
Test script:
---------------
---
From manual page: http://www.php.net/function.echo
---
This:
"""
Description
void echo ( string $arg1 [, string $... ] )
"""
is in contraddiction with this:
"""
Additionally, if you want to pass more than one parameter to echo, the
parameters must not be enclosed within parentheses.
"""
The second is true, so the first must be corrected.
It should read something like:
"""
Description
void echo ( string $arg1)
void echo string $arg1 [, string $... ]
"""
And by the way, why on earth not changing the behavior so that it does
accept parenthesis with more than one parameter??
Expected result:
----------------
---
From manual page: http://www.php.net/function.echo
---
This:
"""
Description
void echo ( string $arg1 [, string $... ] )
"""
is in contraddiction with this:
"""
Additionally, if you want to pass more than one parameter to echo, the
parameters must not be enclosed within parentheses.
"""
The second is true, so the first must be corrected.
It should read something like:
"""
Description
void echo ( string $arg1)
void echo string $arg1 [, string $... ]
"""
And by the way, why on earth not changing the behavior so that it does
accept parenthesis with more than one parameter??
Actual result:
--------------
---
From manual page: http://www.php.net/function.echo
---
This:
"""
Description
void echo ( string $arg1 [, string $... ] )
"""
is in contraddiction with this:
"""
Additionally, if you want to pass more than one parameter to echo, the
parameters must not be enclosed within parentheses.
"""
The second is true, so the first must be corrected.
It should read something like:
"""
Description
void echo ( string $arg1)
void echo string $arg1 [, string $... ]
"""
And by the way, why on earth not changing the behavior so that it does
accept parenthesis with more than one parameter??
--
Edit bug report at https://bugs.php.net/bug.php?id=69011&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69011&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69011&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69011&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69011&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69011&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69011&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69011&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69011&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69011&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69011&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69011&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69011&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69011&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69011&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69011&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69011&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69011&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69011&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69011&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69011&r=mysqlcfg