PHP_FE(strcoll, arginfo_strcoll)
#ifdef HAVE_STRFMON
- PHP_FE(money_format, arginfo_money_format)
+ PHP_DEP_FE(money_format, arginfo_money_format)
#endif
PHP_FE(substr, arginfo_substr)
?>
===DONE===
---EXPECT--
+--EXPECTF--
*** Testing money_format() : basic functionality***
Format values with 14 positions, 8 digits to left, 2 to right using national format
+
+Deprecated: Function money_format() is deprecated in %s on line %d
string
+
+Deprecated: Function money_format() is deprecated in %s on line %d
string
Format again but with ( for negative values
+
+Deprecated: Function money_format() is deprecated in %s on line %d
string
+
+Deprecated: Function money_format() is deprecated in %s on line %d
string
Format with 0 for padding character
+
+Deprecated: Function money_format() is deprecated in %s on line %d
string
+
+Deprecated: Function money_format() is deprecated in %s on line %d
string
Format again with * for padding character
+
+Deprecated: Function money_format() is deprecated in %s on line %d
string
+
+Deprecated: Function money_format() is deprecated in %s on line %d
string
Format again but disable grouping character
+
+Deprecated: Function money_format() is deprecated in %s on line %d
string
+
+Deprecated: Function money_format() is deprecated in %s on line %d
string
Format again suppress currency symbol
+
+Deprecated: Function money_format() is deprecated in %s on line %d
string
+
+Deprecated: Function money_format() is deprecated in %s on line %d
string
===DONE===
-- Testing money_format() function with no arguments --
+Deprecated: Function money_format() is deprecated in %s on line %d
+
Warning: money_format() expects exactly 2 parameters, 0 given in %s on line %d
NULL
-- Testing money_format() function with insufficient arguments --
+Deprecated: Function money_format() is deprecated in %s on line %d
+
Warning: money_format() expects exactly 2 parameters, 1 given in %s on line %d
NULL
-- Testing money_format() function with more than expected no. of arguments --
+Deprecated: Function money_format() is deprecated in %s on line %d
+
Warning: money_format() expects exactly 2 parameters, 3 given in %s on line %d
NULL
-- Testing money_format() function with more than one token --
+Deprecated: Function money_format() is deprecated in %s on line %d
+
Warning: money_format(): Only a single %ci or %cn token can be used in %s on line %d
bool(false)
===DONE===
setlocale(LC_MONETARY, 'en_US');
var_dump( money_format("X%nY", 3.1415));
?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function money_format() is deprecated in %s on line %d
string(7) "X$3.14Y"