Mantis - Quercus
Viewing Issue Advanced Details
4686 major always 07-27-11 04:33 07-27-11 04:33
gislik  
 
normal  
new 4.0.14  
open  
none    
none  
0004686: preg_replace_callback does not return empty groups
When running Wordpress 3.2.1 on top of Quercus there was a difference between the results I got from PHP/5.3.4 and Quercus 4.0.18.

The problam is that the implementation for preg_replace_callback (pregReplaceCallbackImpl) does not return empty groups.

When going through the Quercus source code I found the following lines commented out in pregReplaceCallbackImpl.

        /* PHP's preg_replace_callback does not return empty groups
        else
          regs.put(empty);
        */

so it seems PHP's previous implementations did not return empty groups. Uncommenting the else-clause solved my problem running Wordpress on Quercus.

There are no notes attached to this issue.