Bug #68388 [Opn->Nab]: proto string implode([string glue,] array pieces)
| From: | aharvey@php.net | Date: | Tue, 11 Nov 2014 07:52:25 +0000 |
| Subject: | Bug #68388 [Opn->Nab]: proto string implode([string glue,] array pieces) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-188551@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68388&edit=1
ID: 68388
Updated by: aharvey@php.net
Reported by: zxh312007 at gmail dot com
Summary: proto string implode([string glue,] array pieces)
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: fedora 20
PHP Version: 5.4.34
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2014-11-11 01:28:09] zxh312007 at gmail dot com
I was failed to find the problem until i saw your comment, because I was checked on the source code.
now I found out that I used Taint, disable it will fix the problem.
Extension: Taint,
taint.c#L2382 ,
Last Commit: bf4a8bb024f0318934c52ed72952f5a968163337
thx!
------------------------------------------------------------------------
[2014-11-10 09:20:36] requinix@php.net
I see you're using Xdebug. What other Zend extensions are you using? Disable them all and try
again.
------------------------------------------------------------------------
[2014-11-10 08:36:14] zxh312007 at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=68388&edit=1