From: Ilia Alshanetsky Date: Mon, 30 Mar 2009 19:59:08 +0000 (+0000) Subject: Fixed bug #47831 (Compile warning for strnlen() in main/spprintf.c) X-Git-Tag: php-5.2.10RC1~255 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff9bc5c5e1b33bbfcd03001b295362458a042bfa;p=php Fixed bug #47831 (Compile warning for strnlen() in main/spprintf.c) # Patch by rainer\ dot\ jung\ at\ kippdata\ dot\ de --- diff --git a/NEWS b/NEWS index a9d14b8ba5..129cff3eef 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,4 @@ -PHP NEWS +PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2009, PHP 5.2.10 - Added new CURL options CURLOPT_REDIR_PROTOCOLS, CURLOPT_PROTOCOLS, @@ -7,6 +7,8 @@ - Fixed memory corruptions while reading properties of zip files. (Ilia) - Fixed memory leak in ob_get_clean/ob_get_flush. (Christian) +- Fixed bug #47831 (Compile warning for strnlen() in main/spprintf.c). + (Ilia, rainer dot jung at kippdata dot de) - Fixed bug #47828 (openssl_x509_parse() segfaults when a UTF-8 conversion fails). (Scott, Kees Cook, Pierre) - Fixed bug #47769 (Strange extends PDO). (Felipe) diff --git a/main/spprintf.c b/main/spprintf.c index b21e1fe144..197e5dd28e 100644 --- a/main/spprintf.c +++ b/main/spprintf.c @@ -76,6 +76,7 @@ * SIO stdio-replacement strx_* functions by Panos Tsirigotis * for xinetd. */ +#define _GNU_SOURCE #include "php.h" #include