#22315 [Opn->Bgs]: weird errors using \\
| From: | sniper@php.net | Date: | Fri, 21 Feb 2003 04:41:01 +0000 |
| Subject: | #22315 [Opn->Bgs]: weird errors using \\ | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33777@lists.php.net to get a copy of this message | ||
ID: 22315
Updated by: sniper@php.net
Reported By: paj at pearfr dot org
-Status: Open
+Status: Bogus
Bug Type: PCRE related
Operating System: linux
PHP Version: 4.3.1
New Comment:
Bogused as discussed with Pierre on IRC.
Previous Comments:
------------------------------------------------------------------------
[2003-02-20 17:08:54] pajoye@php.net
The 2nd script seems to work on 4.2.1, 4.2.2, 4.2.3, 4.3.0 and 4.3.1.
Well, I can consider it as the way to do it.
pierre
------------------------------------------------------------------------
[2003-02-19 22:51:15] paj at pearfr dot org
$path='Hello\ World There is\ a\ dog';
$split=preg_split('/(?<!\\)\s+/',$path);
print_r($split);
returns:
Warning: Compilation failed: lookbehind assertion is not fixed length
at offset 9 in /home/paj/projects/pear/core/test.php on line 17
/home/paj/projects/pear/core/test.php(17) : Warning - Compilation
failed: lookbehind assertion is not fixed length at offset 9
$path='Hello\ World There is\ a\ dog';
$split=preg_split('/(?<!\\\)\s+/',$path);
print_r($split);
does not, but does not work as expected with others cases.
It seems to work with 4.3.0, a test url:
http://devel.akbkhome.com/regex.php
which runs 4.3.0, the 1st expression works correclty
pierre
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22315&edit=1