From 4a816584a4d483722485e5163396ea1bb2a6aee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Sat, 29 Feb 2020 22:47:04 +0100 Subject: Make float to string casts locale-independent From now on, float to string casting will always behave locale-independently. RFC: https://wiki.php.net/rfc/locale_independent_float_to_string Closes GH-5224 Co-authored-by: George Peter Banyard --- main/php.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/php.h') diff --git a/main/php.h b/main/php.h index a20b4a3bfc..87f7d000f9 100644 --- a/main/php.h +++ b/main/php.h @@ -309,8 +309,8 @@ ssize_t pread(int, void *, size_t, off64_t); BEGIN_EXTERN_C() void phperror(char *error); PHPAPI size_t php_write(void *buf, size_t size); -PHPAPI size_t php_printf(const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1, - 2); +PHPAPI size_t php_printf(const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1, 2); +PHPAPI size_t php_printf_unchecked(const char *format, ...); PHPAPI int php_get_module_initialized(void); #ifdef HAVE_SYSLOG_H #include "php_syslog.h" -- cgit v1.2.1