Anonymous | Login | Signup for a new account | 10-30-2024 04:15 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 | ||||
0003829 | [Quercus] | major | always | 12-25-09 11:33 | 01-03-13 08:46 | ||||
Reporter | alexander_hristov | View Status | public | ||||||
Assigned To | nam | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 4.0.2 | ||||||
Summary | 0003829: Regexp Failure | ||||||||
Description |
Drupal + DomainAccess has the following regexp in one of its functions: $pattern = '{ # Beginning of the string ^ ((?P<anonymous_view> # Everything within this set of parentheses is named "anonymous view" (?: [^()]++ # anything not parentheses | \( (?P>anonymous_view) \) # an open parenthesis, more "anonymous view" and finally a close parenthesis. )* )[^()]+WHERE) }x'; This regexp is subsequently used in preg_match($pattern, $query, $matches) In this particular use case, query contains the string "SELECT DISTINCT(n.nid), n.sticky, n.created FROM {node} n WHERE n.promote = 1 AND n.status = 1 ORDER BY n.sticky DESC, n.created DESC" Under Quercus, preg_match fails with the following warning: warning: com.caucho.quercus.lib.regexp.IllegalRegexpException: Expected '(?:P=name' or '(?:P (?:[^()]++|\( (?P>anonymous_view)\))*)[^()]+WHERE)/ [preg_match] in F:\glassfishv3\glassfish\domains\domain1\applications\planetalia\includes\database.inc on line 338. Under PHP 5.3.1, works normally. |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |