]> granicus.if.org Git - php/commitdiff
Fixed bug #47831 (Compile warning for strnlen() in main/spprintf.c)
authorIlia Alshanetsky <iliaa@php.net>
Mon, 30 Mar 2009 19:59:08 +0000 (19:59 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 30 Mar 2009 19:59:08 +0000 (19:59 +0000)
# Patch by rainer\ dot\ jung\ at\ kippdata\ dot\ de

NEWS
main/spprintf.c

diff --git a/NEWS b/NEWS
index a9d14b8ba574bd372e59a08c214cffccb233a24b..129cff3eefec9378075f473f616cbe9163b2a45e 100644 (file)
--- 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)
index b21e1fe14428d5ff912add9952e6b5a92dc065dc..197e5dd28e6e8005e1ecb1b55fd588cbc722cf7b 100644 (file)
@@ -76,6 +76,7 @@
  * SIO stdio-replacement strx_* functions by Panos Tsirigotis
  * <panos@alumni.cs.colorado.edu> for xinetd.
  */
+#define _GNU_SOURCE
 #include "php.h"
 
 #include <stddef.h>