[wp-trac] [WordPress Trac] #19590: number_format_i18n raise a warning when first parameter is 0
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 20 17:36:36 UTC 2011
#19590: number_format_i18n raise a warning when first parameter is 0
--------------------------+------------------------------
Reporter: xmarcos | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: 3.3
Severity: minor | Resolution:
Keywords: |
--------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: has-patch reporter-feedback =>
Comment:
Reproduced with the code above. The `number_format()` warning isn't the
only one:
PHP 5.2.14:
{{{
Notice: Object of class WP_Error could not be converted to double in wp-
includes/functions.php on line 155
Notice: Object of class WP_Error could not be converted to int in wp-
includes/pomo/translations.php(171) : runtime-created function on line 2
Catchable fatal error: Object of class WP_Error could not be converted to
string in wp-admin/includes/dashboard.php on line 552
}}}
PHP 5.3.3:
{{{
Warning: number_format() expects parameter 1 to be double, object given in
wp-includes\functions.php on line 155
Notice: Object of class WP_Error could not be converted to int in wp-
includes\pomo\translations.php(171) : runtime-created function on line 2
Catchable fatal error: Object of class WP_Error could not be converted to
string in wp-admin/includes/dashboard.php on line 552
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19590#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list