From: Sascha Schumann Date: Sun, 19 Dec 1999 20:08:40 +0000 (+0000) Subject: Fix broken sprintf handling in PHP X-Git-Tag: PRE_LIBZEND_TO_ZEND~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4b39c68862ed0be4e1614d3fcdd149687950afc;p=php Fix broken sprintf handling in PHP --- diff --git a/acconfig.h.in b/acconfig.h.in index fba8562865..1a85f3acbf 100644 --- a/acconfig.h.in +++ b/acconfig.h.in @@ -122,4 +122,8 @@ /* Define if struct sockaddr contains the field sa_len */ #undef HAVE_SOCKADDR_SA_LEN -#define sprintf zend_sprintf +#undef BROKEN_SPRINTF + +#if BROKEN_SPRINTF +#define sprintf php_sprintf +#endif diff --git a/configure.in b/configure.in index 22ffe72b3c..e1b051e4d9 100644 --- a/configure.in +++ b/configure.in @@ -373,11 +373,7 @@ vsnprintf \ AC_REPLACE_FUNCS(strlcat strlcpy getopt) AC_FUNC_UTIME_NULL AC_FUNC_ALLOCA -dnl## OLDLIBS=$LIBS; LIBS="" -dnl This is also defined/used in libzend. To avoid a redefinition -dnl we use that version -dnl AC_BROKEN_SPRINTF -dnl## LIBS=$OLDLIBS +AC_BROKEN_SPRINTF dnl AIX keeps in_addr_t in /usr/include/netinet/in.h dnl AC_MSG_CHECKING(for in_addr_t)