PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Internationalization » I18Nv2 » Bug #6627

PHP Warning: array_walk()

Details

Submitted2006-01-30 10:44 UTC
Fromtobiaslohr at gmx dot de
StatusBogus
PackageI18Nv2
PHP Version4.3.10
Roadmaps(Not assigned)

Comments

[2006-01-30 10:44 UTC] tobiaslohr at gmx dot de

Description:
------------
When calling I18Nv2_Country::getAllCodes() you'll get the following warning:

Warning: array_walk(): The argument should be an array in .../I18Nv2/CommonList.php on line 198

Test script:
---------------
require_once 'I18Nv2/Country.php';
$countries = I18Nv2_Country::getAllCodes();

print_r($countries);

Expected result:
----------------
An array of all country codes

Actual result:
--------------
Warning: array_walk(): The argument should be an array in .../I18Nv2/CommonList.php on line 198

Array()

[2006-01-30 12:35 UTC] tobiaslohr at gmx dot de

Closed due to the misunderstood synopsis of the method I18Nv2_Country::getAllCodes() documented here:

http://pear.php.net/manual/en/package.internationalization.i18nv2.i18nv2-country.getallcodes.php