Issues

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

Confirmed. Attached patch and unit test.

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