]> granicus.if.org Git - php/commitdiff
Fix bug #4678
authorZeev Suraski <zeev@php.net>
Mon, 29 May 2000 18:53:42 +0000 (18:53 +0000)
committerZeev Suraski <zeev@php.net>
Mon, 29 May 2000 18:53:42 +0000 (18:53 +0000)
NEWS
ext/mysql/php_mysql.c

diff --git a/NEWS b/NEWS
index 3a17a7b78a9d4d820618afd45d99041522b54ca6..f2be22e00832c36cbb584037ef22ecad662b6698 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@ PHP 4.0                                                                    NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 
 ?? ??? 2000, Version 4.0.1
+- Fixed a bug in mysql_connect() that made it ignore the socket argument, in
+  case of non-persistent connects (Zeev)
 - Added disable_functions php.ini directive, to allow administrators to disable
   certain functions for security reasons (Zeev)
 - Fixed sessions on Win32. When setting the directory depth parameter in
index caa6ad5850f755052d2e0749c6e1f60a710cb997..0f2a0b4b51566442a7a7b1975833e822a26bd60f 100644 (file)
@@ -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