|
Mantis - Quercus
|
||||||||||
| Viewing Issue Advanced Details | ||||||||||
|
|
||||||||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: | |||||
| 4805 | minor | always | 10-13-11 12:26 | 01-05-13 22:06 | ||||||
|
|
||||||||||
| Reporter: | lolharuki | Platform: | ||||||||
| Assigned To: | nam | OS: | ||||||||
| Priority: | normal | OS Version: | ||||||||
| Status: | closed | Product Version: | 4.0.22 | |||||||
| Product Build: | Resolution: | fixed | ||||||||
| Projection: | none | |||||||||
| ETA: | none | Fixed in Version: | 4.0.34 | |||||||
|
|
||||||||||
| Summary: | 0004805: Regex | |||||||||
| Description: |
I'm trying to run the following code: <?php $pattern = '~^(([^:@]*)(:([^@]*))?@)?((?(?=[[])[[][^]]+[]]|[^:]+))(:(.*) )?$~'; $status = @preg_match($pattern, 'www.google.com', $matches); echo ($status? 'win' : 'fail'); ?> $ php foo.php win But when I request /app/foo.php, it prints 'fail'. |
|||||||||
| Steps To Reproduce: | ||||||||||
| Additional Information: | ||||||||||
| Relationships |
| |||||||||
| Attached Files: | ||||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||