|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69 split() does not handle the regexp "/" correctly?
Submitted: 1998-02-13 08:54 UTC Modified: 1998-02-16 16:43 UTC
From: kk at shonline dot de Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0b3 OS: SunOS kundera 5.5.1 Generic_1036
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: kk at shonline dot de
New email:
PHP Version: OS:


 [1998-02-13 08:54 UTC] kk at shonline dot de
What is special about the regexp "/"?

kk@kundera:~/Kunden/hobby $ ~/bin/php -v
kk@kundera:~/Kunden/hobby $ ~/bin/php   
$p = "/de/lall/laber";
$q = split("/", $p);
Content-type: text/html
<b>Warning:</b>  bad regular expression for split() in <b>standard input</b> on line <b>3</b><br>
kk@kundera:~/Kunden/hobby $ 

$q = split("\/", $p) and $q = split('/', $p); fail as well.

I'm back to using explode now, but I really need to do more complex things...



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-16 16:43 UTC] jim
This is fixed in PHP/3.0b4 (but appears to have been left out of the ChangeLog).
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 24 03:01:28 2024 UTC