ZF-12103: Use of uninitialized variable in Zend_Locale_Data:getList

Issue Type: Bug Created: 2012-03-18T22:44:45.000+0000 Last Updated: 2012-05-06T02:53:13.000+0000 Status: Resolved Fix version(s): - 1.11.12 (22/Jun/12)

  • 1.12.0 (27/Aug/12)

Reporter: Siad Ardroumli (said) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Locale

  • FixForZF1.12

Related issues: Attachments: - ZF-12103.patch


You can reproduce this by calling:

$result = Zend_Locale_Data::getList($locale, 'type', $value);

var_dump($result); // array(0) {}

Fix for Zend_Locale_Data in line 364: (-) if (empty($type)) { (+) if (empty($value)) {


Posted by Adam Lundrigan (adamlundrigan) on 2012-05-06T02:50:00.000+0000

Confirmed. Attached patch and unit test.

Posted by Adam Lundrigan (adamlundrigan) on 2012-05-06T02:53:13.000+0000

Fixed in trunk (1.12.0): r24766 Fixed in release-1.11 (1.11.12): r24767

Have you found an issue?

See the Overview section for more details.


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

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