From: [EMAIL PROTECTED] Operating system: Redhat Linux 7.2 PHP version: 4.2.2 PHP Bug Type: PCRE related Bug description: preg_split, PREG_SPLIT_DELIM_CAPTURE does not capture the delimiter
$test = 'This is a text with an $id inside'; $matches = preg_split('#(\$[a-z]*)#', $test, PREG_SPLIT_DELIM_CAPTURE); echo '<pre>'; print_r($matches); echo '</pre>'; expected output: Array ( [0] => "This is a text with an " [1] => $id [2] => " inside" ) output produced in the real world: Array ( [0] => "This is a text with an " [1] => " inside" ) maybe this will help to hunt the bug down. -- Edit bug report at http://bugs.php.net/?id=19853&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19853&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19853&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19853&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19853&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19853&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19853&r=support Expected behavior: http://bugs.php.net/fix.php?id=19853&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19853&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19853&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19853&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19853&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=19853&r=dst IIS Stability: http://bugs.php.net/fix.php?id=19853&r=isapi