summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-09-30 16:14:54 +0000
committerAndi Gutmans <andi@php.net>2000-09-30 16:14:54 +0000
commit3f80efd6605d5a6705c3eb9bb6ecbd3c87ddfab0 (patch)
tree87466322723632065e89296fbf733766404fc88b /ext/mysql/php_mysql.c
parent2622eba31d501ac14336515fd5c9d209890e61f0 (diff)
downloadphp-git-3f80efd6605d5a6705c3eb9bb6ecbd3c87ddfab0.tar.gz
- Cleanup output functions
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r--ext/mysql/php_mysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index c77cdd2a9e..35645bf6af 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -437,7 +437,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent)
#else
if (mysql_connect(mysql,host,user,passwd)==NULL) {
#endif
- php_error(E_WARNING,mysql_error(mysql));
+ php_error(E_WARNING, "%s", mysql_error(mysql));
free(mysql);
efree(hashed_details);
RETURN_FALSE;