Bug #9 [Com]: error using split function
| From: | adasdfdsd at ahoo dot com | Date: | Thu, 18 Jul 2013 07:55:29 +0000 |
| Subject: | Bug #9 [Com]: error using split function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-180313@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=9&edit=1
ID: 9
Comment by: adasdfdsd at ahoo dot com
Reported by: gareth at omnipotent dot net
Summary: error using split function
Status: Closed
Type: Bug
Package: *General Issues
Operating System: Linux 2.0.33 / Intel P2/233
PHP Version: 3.0 Latest CVS
Block user comment: N
Private report: N
New Comment:
das
Previous Comments:
------------------------------------------------------------------------
[1998-01-28 01:11:43] rasmus
Small side-note: For a simple split like this, using
explode() ( http://www.php.net/manual/function.explode.php3
) is faster.
The bug in split() has been fixed now. Patch is available at:
http://www.php.net/cvsweb.cgi/functions/reg.c?r1=1.68&r2=1.69
Or wait for the the b4 release.
------------------------------------------------------------------------
[1998-01-26 18:29:54] gareth at omnipotent dot net
The following scriptet:
<?
$myarr=split(",",",something,that,starts,with,the,deliminator");
?>
returns:
Warning: bad regular expression for split() in /www/splittest.php on line 2
and naturally doesn't assign anything to the $myarr array.
I suppose really you'd expect either to assign an empty value
to the first item in the array, or else to skip the leading
deliminator altogether...
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=9&edit=1