cvs: /php3 ChangeLog /php3/functions mysql.c
| From: | Rasmus Lerdorf | Date: | Mon, 20 Mar 2000 07:34:57 +0000 |
| Subject: | cvs: /php3 ChangeLog /php3/functions mysql.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17074@lists.php.net to get a copy of this message | ||
rasmus Sun Mar 19 23:34:57 2000 EDT
Modified files:
/php3 ChangeLog
/php3/functions mysql.c
Log:
Make it possible to set both the socket and the port at the same time in
mysql_[p]connect()
Index: php3/ChangeLog
diff -u php3/ChangeLog:1.833 php3/ChangeLog:1.834
--- php3/ChangeLog:1.833 Sun Mar 19 22:46:30 2000
+++ php3/ChangeLog Sun Mar 19 23:34:56 2000
@@ -2,7 +2,10 @@
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
? ?, Version 3.0.16
-- Fix exec() and friends and make them return last line of output again.
+- Make it possible to set both the socket and the port at the same time
+ in mysql_[p]connect() (Rasmus)
+- Fix exec() and friends and make them return last line of output
+ again. (Rasmus)
- Add check and support for JPEG format available in gd-1.8+ (Rasmus)
- Fix Solid 2.3 support on glibc2 systems (Stig)
- Enhance resolution of microtime() on OS/2 by using the high resolution timer
Index: php3/functions/mysql.c
diff -u php3/functions/mysql.c:1.195 php3/functions/mysql.c:1.196
--- php3/functions/mysql.c:1.195 Mon Feb 7 15:54:51 2000
+++ php3/functions/mysql.c Sun Mar 19 23:34:57 2000
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mysql.c,v 1.195 2000/02/07 23:54:51 zeev Exp $ */
+/* $Id: mysql.c,v 1.196 2000/03/20 07:34:57 rasmus Exp $ */
/* TODO:
@@ -437,6 +437,11 @@
tmp++;
if (tmp[0] != '/') {
port = atoi(tmp);
+ if(tmp=strchr(tmp,':')) {
+ *tmp=0;
+ tmp++;
+ socket=tmp;
+ }
} else {
socket = tmp;
}