Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003198 [Quercus] minor always 12-28-08 10:05 12-28-08 15:13
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.0
Summary 0003198: Multiple ^ subexpressions cause NPE in preg_match
Description <?php
preg_match("/^x|^y/", 'foobar');

Causes NPE:

[10:04:25.041] {http--8080-68} java.lang.NullPointerException
[10:04:25.041] {http--8080-68} at com.caucho.quercus.lib.regexp.RegexpNode$Or.isAnchorBegin(RegexpNode.java:1812)
[10:04:25.041] {http--8080-68} at com.caucho.quercus.lib.regexp.RegexpNode$Or.isAnchorBegin(RegexpNode.java:1812)
[10:04:25.041] {http--8080-68} at com.caucho.quercus.lib.regexp.Regexp.compile(Regexp.java:201)
[10:04:25.041] {http--8080-68} at com.caucho.quercus.lib.regexp.Regexp.<init>(Regexp.java:150)
[10:04:25.041] {http--8080-68} at com.caucho.quercus.lib.regexp.CauchoRegexpModule.getRegexp(CauchoRegexpModule.java:1401)
[10:04:25.041] {http--8080-68} at com.caucho.quercus.lib.regexp.CauchoRegexpModule.preg_match(CauchoRegexpModule.java:230)
[10:04:25.041] {http--8080-68} at com.caucho.quercus.lib.regexp.RegexpModule.preg_match(RegexpModule.java:119)
Additional Information
Attached Files

- Relationships

- Notes
(0003677)
ferg
12-28-08 15:13

php/4e84
 

- Issue History
Date Modified Username Field Change
12-28-08 10:05 koreth New Issue
12-28-08 15:13 ferg Note Added: 0003677
12-28-08 15:13 ferg Assigned To  => ferg
12-28-08 15:13 ferg Status new => closed
12-28-08 15:13 ferg Resolution open => fixed
12-28-08 15:13 ferg Fixed in Version  => 4.0.0


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