Bug #68388 [Fbk->Opn]: proto string implode([string glue,] array pieces)
| From: | zxh312007 at gmail dot com | Date: | Tue, 11 Nov 2014 01:28:09 +0000 |
| Subject: | Bug #68388 [Fbk->Opn]: proto string implode([string glue,] array pieces) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-188548@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
User updated by: zxh312007 at gmail dot com
Reported by: zxh312007 at gmail dot com
Summary: proto string implode([string glue,] array pieces)
-Status: Feedback
+Status: Open
Type: Bug
Package: *General Issues
Operating System: fedora 20
PHP Version: 5.4.34
Block user comment: N
Private report: N
New Comment:
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!
Previous Comments:
------------------------------------------------------------------------
[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