Bug #37554

Http\Uri::PATTERN_MATCH_HOST has errors

Added by Pankaj Lele almost 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
Http
Target version:
-
Start date:
2012-05-28
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.3
Has patch:
No
Complexity:

Description

<?php
$ret = preg_match('/^[a-zA-Z0-9_~!&\',;=\.\-\$\(\)\*\+]|(?:%[0-9a-fA-F]{2}))*$/', 'www.example.com', $matches);
?>

Produces error "PHP Warning: preg_match(): Compilation failed: unmatched parentheses at offset 54"

Also available in: Atom PDF