PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Internationalization » I18Nv2 » Bug #7247

createLocale raises php notice

Details

Submitted2006-03-29 13:53 UTC
Fromsacher at manetmail dot de
Assignedquipo
StatusClosed
PackageI18Nv2
PHP Version5.1.2
OSirrelevant
Roadmaps(Not assigned)

Comments

[2006-03-29 13:53 UTC] sacher at manetmail dot de

Description:
------------
Hi,

I'm working with display_errors=On and error_reporting(E_ALL). While using I18Nv2 I get the following output:

Notice: Only variable references should be returned by reference in /usr/share/php5/PEAR/I18Nv2.php on line 180

I fixed this by replacing line 180
with the following code:
$foo = new I18Nv2_Locale($locale);
return $foo;

Thanks you.

Test script:
---------------
require_once 'I18Nv2.php';
$locale = I18Nv2::createLocale('de_DE');

Expected result:
----------------
No php notice :)

Actual result:
--------------
Notice: Only variable references should be returned by reference in /usr/share/php5/PEAR/I18Nv2.php on line 180