ZF-12103: Use of uninitialized variable in Zend_Locale_Data:getList
Description
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)) {
Comments
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