ZF-11837: Zend_Locale_Format::checkDateFormat() generates E_NOTICE when locale option key not specified

Issue Type: Bug Created: 2011-10-21T14:24:20.000+0000 Last Updated: 2011-10-22T00:13:40.000+0000 Status: Resolved Fix version(s): - 1.11.12 (22/Jun/12)

Reporter: Holger Schletz (hschletz) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Locale

  • zf-caretaker-adamlundrigan

Related issues: Attachments:


In Locale/Format.php, line 1140:

$options['date_format'] = self::getDateFormat($options['locale']);

$options may not contain a 'locale' element at this point, generating an E_NOTICE.

This will resolve to NULL which will be handled correctly further down the call chain (use application's default locale instead), so the problem is only the E_NOTICE itself.


Posted by Adam Lundrigan (adamlundrigan) on 2011-10-22T00:02:49.000+0000

Fixed in trunk r24518 r24520 r24521 Merged to release-1.11 in r24519 r24522

Posted by Adam Lundrigan (adamlundrigan) on 2011-10-22T00:13:32.000+0000

ZF2 pull request issued

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.