Bug #68388 [NEW]: proto string implode([string glue,] array pieces)
| From: | zxh312007 at gmail dot com | Date: | Mon, 10 Nov 2014 08:36:15 +0000 |
| Subject: | Bug #68388 [NEW]: proto string implode([string glue,] array pieces) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-188527@lists.php.net to get a copy of this message | ||
From: zxh312007 at gmail dot com
Operating system: fedora 20
PHP version: 5.4.34
Package: *General Issues
Bug Type: Bug
Bug description:proto string implode([string glue,] array pieces)
Description:
------------
$ php -r "echo implode(array(1,2));"
PHP Warning: implode() expects exactly 2 parameters, 1 given in Command
line code on line 1
PHP Stack trace:
PHP 1. {main}() Command line code:0
PHP 2. implode() Command line code:1
Warning: implode() expects exactly 2 parameters, 1 given in Command line
code on line 1
Call Stack:
0.0001 252880 1. {main}() Command line code:0
0.0002 254792 2. implode() Command line code:1
PHP Warning: Wrong parameter count for implode() in Command line code
on line 1
PHP Stack trace:
PHP 1. {main}() Command line code:0
PHP 2. implode() Command line code:1
Warning: Wrong parameter count for implode() in Command line code on
line 1
Call Stack:
0.0001 252880 1. {main}() Command line code:0
0.0002 254792 2. implode() Command line code:1
Test script:
---------------
php -r "echo implode(array(1,2));"
Expected result:
----------------
12
Actual result:
--------------
$ php -r "echo implode(array(1,2));"
PHP Warning: implode() expects exactly 2 parameters, 1 given in Command
line code on line 1
PHP Stack trace:
PHP 1. {main}() Command line code:0
PHP 2. implode() Command line code:1
Warning: implode() expects exactly 2 parameters, 1 given in Command line
code on line 1
Call Stack:
0.0001 252880 1. {main}() Command line code:0
0.0002 254792 2. implode() Command line code:1
PHP Warning: Wrong parameter count for implode() in Command line code
on line 1
PHP Stack trace:
PHP 1. {main}() Command line code:0
PHP 2. implode() Command line code:1
Warning: Wrong parameter count for implode() in Command line code on
line 1
Call Stack:
0.0001 252880 1. {main}() Command line code:0
0.0002 254792 2. implode() Command line code:1
--
Edit bug report at https://bugs.php.net/bug.php?id=68388&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68388&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68388&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68388&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68388&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68388&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68388&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68388&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68388&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68388&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68388&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68388&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68388&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68388&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68388&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68388&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68388&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68388&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68388&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68388&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68388&r=mysqlcfg