cvs: php-src(PHP_5_0) /ext/mysqli mysqli_nonapi.c
| From: | Georg Richter | Date: | Tue, 19 Oct 2004 05:17:26 +0000 |
| Subject: | cvs: php-src(PHP_5_0) /ext/mysqli mysqli_nonapi.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28988@lists.php.net to get a copy of this message | ||
georg Tue Oct 19 01:17:26 2004 EDT
Modified files: (Branch: PHP_5_0)
/php-src/ext/mysqli mysqli_nonapi.c
Log:
Minor fix for mysqli_connect: checking socket_len for NULL Values
(Thx to Paul DuBois)
http://cvs.php.net/diff.php/php-src/ext/mysqli/mysqli_nonapi.c?r1=1.34.2.1&r2=1.34.2.2&ty=u
Index: php-src/ext/mysqli/mysqli_nonapi.c
diff -u php-src/ext/mysqli/mysqli_nonapi.c:1.34.2.1 php-src/ext/mysqli/mysqli_nonapi.c:1.34.2.2
--- php-src/ext/mysqli/mysqli_nonapi.c:1.34.2.1 Sat Sep 4 10:19:20 2004
+++ php-src/ext/mysqli/mysqli_nonapi.c Tue Oct 19 01:17:26 2004
@@ -15,7 +15,7 @@
| Author: Georg Richter <georg@php.net> |
+----------------------------------------------------------------------+
- $Id: mysqli_nonapi.c,v 1.34.2.1 2004/09/04 14:19:20 georg Exp $
+ $Id: mysqli_nonapi.c,v 1.34.2.2 2004/10/19 05:17:26 georg Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -49,6 +49,10 @@
return;
}
+ if (!socket_len) {
+ socket = NULL;
+ }
+
/* TODO: safe mode handling */
if (PG(sql_safe_mode)){
} else {