Home » Internationalization » I18Nv2 » Bug #7247
createLocale raises php notice
Details
| Submitted | 2006-03-29 13:53 UTC |
|---|---|
| From | sacher at manetmail dot de |
| Assigned | quipo |
| Status | Closed |
| Package | I18Nv2 |
| PHP Version | 5.1.2 |
| OS | irrelevant |
| 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