From:             [EMAIL PROTECTED]
Operating system: NetBSD 1.5.2
PHP version:      4.1.1
PHP Bug Type:     PCRE related
Bug description:  preg_split PREG_SPLIT_DELIM_CAPTURE does not work like in 4.0.6

hello
for my small logic parser and sql-query-generator I used preg_split with
PREG_SPLIT_DELIM_CAPTURE flag like shown below, but now with 4.1.1 my
result $elements is empty an the rest of my function work with a empty
array and nothing happen.

// my input is like 
$inString = array('tlb | test');
// use of preg_split
$elements = preg_split ("/\s+|(\()|(\))|(\\\\\")|(\+)|(,)|(&)|(!)|(\|)/",
$inString, -1, PREG_SPLIT_NO_EMPTY|PREG_SPLIT_DELIM_CAPTURE);
// output, result was in 4.0.6 like ... 
$elements[0] ='tlb'
$elements[1] ='|'
$elements[2] ='test'

cu
tlb

-- 
Edit bug report at http://bugs.php.net/?id=15361&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=15361&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=15361&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=15361&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15361&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15361&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15361&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=15361&r=notenoughinfo


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to