Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002755 [Quercus] minor always 06-27-08 07:15 09-17-08 10:42
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.2.1 Product Version 3.1.6
  Product Build
Summary 0002755: str_replace/regexp issue
Description (rep by atijms)

The following line of code, taken from PHPBB2's viewtopic.php file, always yields an empty string when running on Quercus 3.1.6. On a real PHP server however it does work:


$message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $message . '<'), 1, -1));

Of course, this line can be replaced with something like this:

$regExp = "#(\>(((?>([^><]+|(?R)))*)\<))#se";
$message = str_replace(substr($orig_word[$i],4,-5),"",$message);
But it does causes PHPBB2 to fail when being run out of the box (the body text of all postings will appear to be empty). I remember reading that PHPBB2 was supported on Quercus, so perhaps this is a recent regression?
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003317)
ferg
08-11-08 11:06

The issue is (?R), which hasn't been implemented yet.
 
(0003450)
ferg
09-17-08 10:42

php/4eq{0,1}
 

- Issue History
Date Modified Username Field Change
06-27-08 07:15 ferg New Issue
08-11-08 11:06 ferg Note Added: 0003317
09-17-08 10:42 ferg Note Added: 0003450
09-17-08 10:42 ferg Assigned To  => ferg
09-17-08 10:42 ferg Status new => closed
09-17-08 10:42 ferg Resolution open => fixed
09-17-08 10:42 ferg Fixed in Version  => 3.2.1


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker