RETURN_FALSE;
}
- hashed_len = php_sprintf(hashed_details, "%s_%s_%s_%s_%d", ODBC_TYPE, db, uid, pwd, cur_opt);
+ hashed_len = sprintf(hashed_details, "%s_%s_%s_%s_%d", ODBC_TYPE, db, uid, pwd, cur_opt);
/* FIXME the idea of checking to see if our connection is already persistent
is good, but it adds a lot of overhead to non-persistent connections. We
dec = MAX(0,dec);
tmpbuf = (char *) emalloc(32+dec);
- tmplen=php_sprintf(tmpbuf,"%.*f",dec,d);
+ tmplen=sprintf(tmpbuf,"%.*f",dec,d);
if (!isdigit((int)tmpbuf[0])) {
return tmpbuf;
#define LONG_MIN (- LONG_MAX - 1)
#endif
-#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
+#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF) || defined(BROKEN_SPRINTF)
#include "snprintf.h"
#endif
#if BROKEN_SPRINTF
int php_sprintf (char* s, const char* format, ...);
-#else
-#define php_sprintf sprintf
+#define sprintf php_sprintf
#endif
#endif /* _PHP_SNPRINTF_H */
pi = NULL;
}
val = emalloc(l + 1);
- php_sprintf(val, "%s%s", (sn ? sn : ""), (pi ? pi : "")); /* SAFE */
+ sprintf(val, "%s%s", (sn ? sn : ""), (pi ? pi : "")); /* SAFE */
php_register_variable("PHP_SELF", val, track_vars_array ELS_CC PLS_CC);
efree(val);
}