Anonymous | Login | Signup for a new account | 12-17-2024 08:51 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ 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 | ||||||
Status | closed | Product Version | 3.1.6 | ||||||
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? |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
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} |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed. 26 unique queries executed. |