]> granicus.if.org Git - php/commitdiff
Fix broken sprintf handling in PHP
authorSascha Schumann <sas@php.net>
Sun, 19 Dec 1999 20:08:40 +0000 (20:08 +0000)
committerSascha Schumann <sas@php.net>
Sun, 19 Dec 1999 20:08:40 +0000 (20:08 +0000)
acconfig.h.in
configure.in

index fba8562865f76bbd0e463272042ee9ff12e466bc..1a85f3acbffd2685525d3621426ecf793717609e 100644 (file)
 /* 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
index 22ffe72b3c11072497d5683cb2429cffbd43bb6e..e1b051e4d9c84f0d08d348384a402ed71c782c37 100644 (file)
@@ -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)