#26730 [Opn->Bgs]: [chm] bug on function.explode.html
| From: | iliaa@php.net | Date: | Sun, 28 Dec 2003 19:50:16 +0000 |
| Subject: | #26730 [Opn->Bgs]: [chm] bug on function.explode.html | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-52550@lists.php.net to get a copy of this message | ||
ID: 26730
Updated by: iliaa@php.net
Reported By: tomas dot matousek at matfyz dot cz
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: windows
PHP Version: 5.0.0b2 (beta2)
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
When number parts is <0 the value defaults to 1, when it is
0 it simply returns the specified string.
Previous Comments:
------------------------------------------------------------------------
[2003-12-28 07:26:01] tomas dot matousek at matfyz dot cz
Description:
------------
The explode() function misbehaves if the limit parameter has invalid
value.
Reproduce code:
---------------
explode(",","a,b,c,d,e,f",-8);
explode(",","a,b,c,d,e,f",0);
Expected result:
----------------
Warning + returning FALSE
Actual result:
--------------
invalid value is treated as if it was 2 and 1 respectively
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26730&edit=1