From: paj at pearfr dot org
Operating system: linux
PHP version: 4.3.1
PHP Bug Type: PCRE related
Bug description: weird errors using \\
$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 bug report at http://bugs.php.net/?id=22315&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22315&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22315&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22315&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22315&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22315&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22315&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22315&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22315&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22315&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22315&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22315&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22315&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22315&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22315&r=gnused