|Anonymous | Login | Signup for a new account||09-21-2020 08:37 PDT|
|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|
|0001561||[Quercus]||major||always||01-17-07 03:38||01-17-07 12:42|
|Summary||0001561: Problem with back references to subpatterns in preg_match_all|
When using a back reference within the pattern, the behaviour of preg_match_all differs from the original php implementation. The PEAR template engine (class HTML_Template_IT) doesn't work due to this bug. See attached file for a demonstration. The pattern used in the script is the same as used in the PEAR class.
The demo script contains the same pattern twice, firstly as a single-quoted, secondly as a double-quoted string. The original php implementation treats those differently, Quercus does not. Quercus always behaves as if it were double-quoted.
The original php interpreter outputs:
string(60) "<!-- BEGIN testblock --> inside block <!-- END testblock -->"
string(14) " inside block "
|I'm sorry, the file upload didn't work but the rest of the bug was saved. See 1562 for a version including the demo script.|
|01-17-07 03:38||obaltz||New Issue|
|01-17-07 03:45||obaltz||Note Added: 0001722|
|01-17-07 12:40||nam||Status||new => assigned|
|01-17-07 12:40||nam||Assigned To||=> nam|
|01-17-07 12:40||nam||Status||assigned => closed|
|01-17-07 12:40||nam||Resolution||open => duplicate|
|01-17-07 12:40||nam||Status||closed => assigned|
|01-17-07 12:41||nam||Relationship added||duplicate of 0001562|
|01-17-07 12:42||nam||Status||assigned => closed|
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
34 total queries executed.|
29 unique queries executed.