Bug #65587 [Fbk->Nab]: When PHP was upgraded from 5.2 to 5.4,then the bug will comes out
| From: | johannes@php.net | Date: | Fri, 30 Aug 2013 12:12:02 +0000 |
| Subject: | Bug #65587 [Fbk->Nab]: When PHP was upgraded from 5.2 to 5.4,then the bug will comes out | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-181355@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65587&edit=1
ID: 65587
Updated by: johannes@php.net
Reported by: xiche at adobe dot com
Summary: When PHP was upgraded from 5.2 to 5.4,then the bug
will comes out
-Status: Feedback
+Status: Not a bug
Type: Bug
Package: Strings related
Operating System: Linux
PHP Version: 5.4.19
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2013-08-30 06:47:24] requinix@php.net
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 06:14:28] xiche at adobe dot com
Description:
------------
---
From manual page: http://www.php.net/function.strstr#refsect1-function.strstr-description
---
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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65587&edit=1