#26730 [NEW]: [chm] bug on function.explode.html
| From: | tomas dot matousek at matfyz dot cz | Date: | Sun, 28 Dec 2003 12:26:01 +0000 |
| Subject: | #26730 [NEW]: [chm] bug on function.explode.html | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-52537@lists.php.net to get a copy of this message | ||
From: tomas dot matousek at matfyz dot cz
Operating system: windows
PHP version: 5.0.0b2 (beta2)
PHP Bug Type: Scripting Engine problem
Bug description: [chm] bug on function.explode.html
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 bug report at http://bugs.php.net/?id=26730&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26730&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26730&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26730&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26730&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26730&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26730&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26730&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26730&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26730&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26730&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26730&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26730&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26730&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26730&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26730&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26730&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26730&r=float