- MFH4.3: Cleaned up some of the locale mess:

* all internal use of sprintf, snprintf and the like will always
    use the . as thousands seperator (if php.h is included only!).
  * echo, printf() and sprintf() always render locale-aware
  * added the %F modifier for non-locale aware rendering for floats
This commit is contained in:
Derick Rethans 2004-11-15 13:42:22 +00:00
parent 48fe8cf7bc
commit 61364b5bb1
6 changed files with 10 additions and 26 deletions

View file

@ -37,10 +37,8 @@
#include "zend_API.h"
#if PHP_BROKEN_SPRINTF
#undef sprintf
#define sprintf php_sprintf
#endif
/* PHP's DEBUG value must match Zend's ZEND_DEBUG value */
#undef PHP_DEBUG
@ -228,9 +226,7 @@ char *strerror(int);
#define PHP_ATTRIBUTE_MALLOC ZEND_ATTRIBUTE_MALLOC
#define PHP_ATTRIBUTE_FORMAT ZEND_ATTRIBUTE_FORMAT
#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF) || PHP_BROKEN_SPRINTF || PHP_BROKEN_SNPRINTF || PHP_BROKEN_VSNPRINTF
#include "snprintf.h"
#endif
#include "spprintf.h"
#define EXEC_INPUT_BUF 4096