php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
3.0b3-dev
kk@kundera:~/Kunden/hobby $ ~/bin/php   
<?php
$p = "/de/lall/laber";
$q = split("/", $p);
Content-type: text/html
 
<br>
<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...

Kristian

Patches

Pull Requests

History

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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 08:01:35 2025 UTC