Index: library/Zend/Locale/Format.php =================================================================== --- library/Zend/Locale/Format.php (revision 22512) +++ library/Zend/Locale/Format.php (working copy) @@ -1130,34 +1130,34 @@ $options = self::_checkOptions($options) + self::$_options; // day expected but not parsed - if ((iconv_strpos($options['date_format'], 'd', 0, 'UTF-8') !== false) and (!isset($date['day']) or ($date['day'] == ""))) { + if ((iconv_strpos($options['date_format'], 'd', 0, 'UTF-8') !== false) and (!isset($date['day']) or ((string)$date['day'] == ""))) { return false; } // month expected but not parsed - if ((iconv_strpos($options['date_format'], 'M', 0, 'UTF-8') !== false) and (!isset($date['month']) or ($date['month'] == ""))) { + if ((iconv_strpos($options['date_format'], 'M', 0, 'UTF-8') !== false) and (!isset($date['month']) or ((string)$date['month'] == ""))) { return false; } // year expected but not parsed if (((iconv_strpos($options['date_format'], 'Y', 0, 'UTF-8') !== false) or - (iconv_strpos($options['date_format'], 'y', 0, 'UTF-8') !== false)) and (!isset($date['year']) or ($date['year'] == ""))) { + (iconv_strpos($options['date_format'], 'y', 0, 'UTF-8') !== false)) and (!isset($date['year']) or ((string)$date['year'] == ""))) { return false; } // second expected but not parsed - if ((iconv_strpos($options['date_format'], 's', 0, 'UTF-8') !== false) and (!isset($date['second']) or ($date['second'] == ""))) { + if ((iconv_strpos($options['date_format'], 's', 0, 'UTF-8') !== false) and (!isset($date['second']) or ((string)$date['second'] == ""))) { return false; } // minute expected but not parsed - if ((iconv_strpos($options['date_format'], 'm', 0, 'UTF-8') !== false) and (!isset($date['minute']) or ($date['minute'] == ""))) { + if ((iconv_strpos($options['date_format'], 'm', 0, 'UTF-8') !== false) and (!isset($date['minute']) or ((string)$date['minute'] == ""))) { return false; } // hour expected but not parsed if (((iconv_strpos($options['date_format'], 'H', 0, 'UTF-8') !== false) or - (iconv_strpos($options['date_format'], 'h', 0, 'UTF-8') !== false)) and (!isset($date['hour']) or ($date['hour'] == ""))) { + (iconv_strpos($options['date_format'], 'h', 0, 'UTF-8') !== false)) and (!isset($date['hour']) or ((string)$date['hour'] == ""))) { return false; } return true;