php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #64367
Patch localeconv_isoc99_patch revision 2013-03-06 08:42 UTC by abdevg at gmail dot com

Patch localeconv_isoc99_patch for Unknown/Other Function Bug #64367

Patch version 2013-03-06 08:42 UTC

Return to Bug #64367 | Download this patch
Patch Revisions:

Developer: abdevg@gmail.com

diff --git a/ext/standard/string.c b/ext/standard/string.c.new
index 42bf198..7809fd8 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c.new
@@ -5146,6 +5146,8 @@ PHP_FUNCTION(localeconv)
 		add_assoc_long(  return_value, "n_sep_by_space",    currlocdata.n_sep_by_space      );
 		add_assoc_long(  return_value, "p_sign_posn",       currlocdata.p_sign_posn         );
 		add_assoc_long(  return_value, "n_sign_posn",       currlocdata.n_sign_posn         );
+		add_assoc_long(  return_value, "int_p_sep_by_space",currlocdata.int_p_sep_by_space  );
+		add_assoc_long(  return_value, "int_n_sep_by_space",currlocdata.int_n_sep_by_space  );
 	}
 #else
 	/* Ok, it doesn't look like we have locale info floating around, so I guess it
@@ -5170,6 +5172,8 @@ PHP_FUNCTION(localeconv)
 	add_assoc_long(  return_value, "n_sep_by_space",    CHAR_MAX );
 	add_assoc_long(  return_value, "p_sign_posn",       CHAR_MAX );
 	add_assoc_long(  return_value, "n_sign_posn",       CHAR_MAX );
+	add_assoc_long(  return_value, "int_p_sep_by_space",CHAR_MAX );
+	add_assoc_long(  return_value, "int_n_sep_by_space",CHAR_MAX );
 #endif
 
 	zend_hash_update(Z_ARRVAL_P(return_value), "grouping", 9, &grouping, sizeof(zval *), NULL);
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 13:01:23 2019 UTC