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 @@ -27,6 +27,7 @@ PHP NEWS
27
27
. Fixed bug #47021 (SoapClient stumbles over WSDL delivered with
28
28
"Transfer-Encoding: chunked"). (Rowan Collins)
29
29
. Fixed bug #72974 (imap is undefined service on AIX). (matthieu.sarter)
30
+ . Fixed bug #72979 (money_format stores wrong length AIX). (matthieu.sarter)
30
31
31
32
- ZIP:
32
33
. Fixed bug #70103 (ZipArchive::addGlob ignores remove_all_path option). (cmb,
Original file line number Diff line number Diff line change @@ -5514,7 +5514,15 @@ PHP_FUNCTION(money_format)
5514
5514
zend_string_free (str );
5515
5515
RETURN_FALSE ;
5516
5516
}
5517
+ #ifdef _AIX
5518
+ /*
5519
+ On AIX strfmon seems to include the terminating \0 in the length returned by strfmon,
5520
+ despite the documentation indicating it is not included.
5521
+ */
5522
+ ZSTR_LEN (str ) = strlen (ZSTR_VAL (str ));
5523
+ #else
5517
5524
ZSTR_LEN (str ) = (size_t )res_len ;
5525
+ #endif
5518
5526
ZSTR_VAL (str )[ZSTR_LEN (str )] = '\0' ;
5519
5527
5520
5528
RETURN_NEW_STR (zend_string_truncate (str , ZSTR_LEN (str ), 0 ));
You can’t perform that action at this time.
0 commit comments