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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 25 12:01:32 2024 UTC