Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.10.6
-
Fix Version/s: 1.11.0
-
Component/s: Zend_Locale
-
Labels:None
Description
Using the core of the Magento eCommerce system I found that the preg_match_all contains an ungreedy delimiter in the pattern that is supposed to be uppercase (since my Linux server is case sensitive).
When the 'u' is lowercase it throws the exception "No date part in '$date' found." whilest the date parameter is an actual date.
Info:
File: \Zend\Locale\Format.php :857
Function: _parseDate
Paramters given:
$date: 2010-06-30 16:56:17
$options:
Array
(
[date_format] => yyyy-MM-dd HH:mm:ss
[locale] => nl_NL
[fix_date] => 1
[format_type] => iso
[number_format] =>
[cache] =>
[disableCache] =>
[precision] =>
)
OS: CentOS
PHP Version: 5.2.13
The lowercase 'u' in a pcre expression is not PCRE_UNGREEDY, it actually means to be utf8 compatible (PCRE8).
Could you confirm that your pcre lib was compiled with utf8 enabled? as the use of this modifier without utf8 being enabled when pcre is compiled will result in the match function returning an error rather than any matches.
You should be able to find this information in your phpinfo.