We've verified this bug occurs on the latest PHP version, 5.3.2
I will report it upstream.
di...@telemaco:~/Desktop/php-5.3.2/sapi/cli$ ./php --version
PHP 5.3.2 (cli) (built: Apr 25 2010 23:58:33)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
The upstream bug report is here: http://bugs.php.net/bug.php?id=51663
** Bug watch added: bugs.php.net/ #51663
http://bugs.php.net/bug.php?id=51663
--
PHP preg_match doesn't match matching string
https://bugs.launchpad.net/bugs/565481
You received this bug notification because you are a memb
The conversation around the upstream bug report continued... it was a
PHP error, as the docs in http://php.net/manual/en/function.preg-
match.php read: "preg_match() returns FALSE if an error occurred." --
but it was returning 0 for this error.
According to bjori at php.net in http://bugs.php.net/
Public bug reported:
Binary package hint: php5
This regular expression: /^(?:[^\[\]{}']+|'[^']*')+:(?:[^\[\]{}']+|'[^']*')+$/
matches this string: a:bbb
in Perl (5.10.0-24ubuntu4):
perl <<__END__
print 'a:b' =~
q/^(?:[^\[\]{}']+|'[^']*')+:(?:[^\[\]{}']+|'[^']*')+$/;
prin
** Attachment added: "Dependencies.txt"
http://launchpadlibrarian.net/44609087/Dependencies.txt
** Attachment added: "XsessionErrors.txt"
http://launchpadlibrarian.net/44609088/XsessionErrors.txt
--
PHP preg_match doesn't match matching string
https://bugs.launchpad.net/bugs/565481
You re