File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ PHP NEWS
25
25
. Fixed bug #47021 (SoapClient stumbles over WSDL delivered with
26
26
"Transfer-Encoding: chunked"). (Rowan Collins)
27
27
. Fixed bug #72974 (imap is undefined service on AIX). (matthieu.sarter)
28
+ . Fixed bug #72979 (money_format stores wrong length AIX). (matthieu.sarter)
28
29
29
30
- ZIP:
30
31
. Fixed bug #70103 (ZipArchive::addGlob ignores remove_all_path option). (cmb,
Original file line number Diff line number Diff line change @@ -5531,7 +5531,15 @@ PHP_FUNCTION(money_format)
5531
5531
zend_string_free (str );
5532
5532
RETURN_FALSE ;
5533
5533
}
5534
+ #ifdef _AIX
5535
+ /*
5536
+ On AIX strfmon seems to include the terminating \0 in the length returned by strfmon,
5537
+ despite the documentation indicating it is not included.
5538
+ */
5539
+ ZSTR_LEN (str ) = strlen (ZSTR_VAL (str ));
5540
+ #else
5534
5541
ZSTR_LEN (str ) = (size_t )res_len ;
5542
+ #endif
5535
5543
ZSTR_VAL (str )[ZSTR_LEN (str )] = '\0' ;
5536
5544
5537
5545
RETURN_NEW_STR (zend_string_truncate (str , ZSTR_LEN (str ), 0 ));
You can’t perform that action at this time.
0 commit comments