Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.18.2

Bug #18501 incorrect declaration of toWords() in lang.fr.php
Submitted: 2011-05-03 18:59 UTC
From: ndeguine Assigned: kouber
Status: Closed Package: Numbers_Words (version 0.16.2)
PHP Version: 5.2.12 OS: CentOS
Roadmaps: (Not assigned)    
Subscription  


 [2011-05-03 18:59 UTC] ndeguine (Nicolas Deguine)
Description: ------------ In lang.fr.php, the toWords method is defined as this : function toWords($num = 0) When I call this method, I have the following message : Erreur 2048 Declaration of Numbers_Words_fr::toWords() should be compatible with that of Numbers_Words::toWords() dans le fichier /usr/share/pear/Numbers/Words/lang.fr.php ligne:447 We should have this : function toWords($num, $locale = 'fr') The previous line can solve this bug. Test script: --------------- <?php error_reporting(E_STRICT) ; require_once('Numbers/Words.php') ; $nw = new Numbers_Words() ; echo $nw->toWords(100000,'fr') ; Expected result: ---------------- cent mille Actual result: -------------- PHP Strict Standards: Declaration of Numbers_Words_fr::toWords() should be compatible with that of Numbers_Words::toWords() in /usr/share/pear/Numbers/Words/lang.fr.php on line 447 Strict Standards: Declaration of Numbers_Words_fr::toWords() should be compatible with that of Numbers_Words::toWords() in /usr/share/pear/Numbers/Words/lang.fr.php on line 447

Comments

 [2011-05-04 20:13 UTC] kouber (Kouber Saparev)
-Status: Open +Status: Closed -Assigned To: +Assigned To: kouber
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. It appears as a duplicate of bug #12512, which has been fixed in SVN. A new release of Math Fraction will be available very soon.