Mantis - Quercus
Viewing Issue Advanced Details
1705 minor always 04-24-07 20:44 04-25-07 04:43
snb  
nam  
normal  
closed 3.1.1  
fixed  
none    
none 3.1.1  
0001705: problems with preg_split() results when using sub patterns and branches
It appears that the fix for bug 0001673 caused a new problem with preg_split(). Using the latest svn version of Quercus, the test script I provided in that bug (http://bugs.caucho.com/file_download.php?file_id=14&type=bug) [^] gives the following output with Quercus:
Array ( [0] => This is a string with a nowiki tag: ''' [1] => nowiki [2] => [3] => > 
 [4] => [[blah blah]]''' )

Array ( [0] => Here's something with an html comment: [1] => [2] => !-- [3] => this is a
 comment --> )

And with PHP 5.2.1 I get:
Array ( [0] => This is a string with a nowiki tag: ''' [1] => nowiki [2] => [3] => > 
 [4] => [[blah blah]]''' )

Array ( [0] => Here's something with an html comment: [1] => [2] => [3] => [4] => !--
 [5] => this is a comment --> )

Now the string with the nowiki tags is split the same way, but the one with the HTML comment gives different results with Quercus.

Notes
(0001860)
nam   
04-25-07 04:43   
php/152v