|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65587 When PHP was upgraded from 5.2 to 5.4,then the bug will comes out
Submitted: 2013-08-30 06:14 UTC Modified: 2013-08-30 12:12 UTC
From: xiche at adobe dot com Assigned:
Status: Not a bug Package: Strings related
PHP Version: 5.4.19 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: xiche at adobe dot com
New email:
PHP Version: OS:


 [2013-08-30 06:14 UTC] xiche at adobe dot com
From manual page:
When PHP was upgraded from 5.2 to 5.4,then the warning message will comes out:

PHP Warning:  strstr() expects parameter 1 to be string, array given in - on line 1


PHPWarning (last revision 2013-08-30 06:15 UTC by xiche at adobe dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-08-30 06:47 UTC]
-Status: Open +Status: Feedback
 [2013-08-30 06:47 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

 [2013-08-30 12:12 UTC]
-Status: Feedback +Status: Not a bug
 [2013-08-30 12:12 UTC]
In the old version an array was silently converted to a string "Array" which makes little sense. PHP no warns when this would happen. This is a bug in your code we're warning you about.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Jun 08 04:03:36 2023 UTC