Bug #15413: preg_split drops characters

From: Date: Thu, 07 Feb 2002 00:27:52 +0000
Subject: Bug #15413: preg_split drops characters
Groups: php.dev 
Request: Send a blank email to php-dev+get-79437@lists.php.net to get a copy of this message
From: caribu@snafu.de Operating system: win PHP version: 4.0.6 PHP Bug Type: PCRE related Bug description: preg_split drops characters $html = {some html containing mulitple instances of "<!-- [some text] --> some text <-- end -->} $array = preg_split("'(?=<!--)(?!<!-- end -->)|(?<=\<!-- ende -->)'si", $html, -1, PREG_SPLIT_NO_EMPTY) preg_split should split the string in such a way, that the html-part and the commented part are each assigned to one array entry. preg_split does as expected, EXCEPT that the first character of the last array entry is disappears Server API Apache Win2000 -- Edit bug report at http://bugs.php.net/?id=15413&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15413&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15413&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15413&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15413&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15413&r=support Expected behavior: http://bugs.php.net/fix.php?id=15413&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15413&r=notenoughinfo

« previous php.dev (#79437) next »