summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-05-29 18:53:42 +0000
committerZeev Suraski <zeev@php.net>2000-05-29 18:53:42 +0000
commit950fb739f8d13db868d6c5c20cf1cbb129d43880 (patch)
treee377f2d14997c2e2a922042cedd73f5773c0a91b /ext/mysql/php_mysql.c
parent8fb954ae4fe5369acc845a4f801731352507de24 (diff)
downloadphp-git-950fb739f8d13db868d6c5c20cf1cbb129d43880.tar.gz
Fix bug #4678
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 caa6ad5850..0f2a0b4b51 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -515,7 +515,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent)
mysql = (MYSQL *) emalloc(sizeof(MYSQL));
#if MYSQL_VERSION_ID > 32199 /* this lets us set the port number */
mysql_init(mysql);
- if (mysql_real_connect(mysql,host,user,passwd,NULL,port,NULL,0)==NULL) {
+ if (mysql_real_connect(mysql,host,user,passwd,NULL,port,socket,0)==NULL) {
#else
if (mysql_connect(mysql,host,user,passwd)==NULL) {
#endif