cvs: php-src /ext/mysqli mysqli_nonapi.c
| From: | Georg Richter | Date: | Tue, 19 Oct 2004 05:14:11 +0000 |
| Subject: | cvs: php-src /ext/mysqli mysqli_nonapi.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28987@lists.php.net to get a copy of this message | ||
georg Tue Oct 19 01:14:11 2004 EDT
Modified files:
/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.35&r2=1.36&ty=u
Index: php-src/ext/mysqli/mysqli_nonapi.c
diff -u php-src/ext/mysqli/mysqli_nonapi.c:1.35 php-src/ext/mysqli/mysqli_nonapi.c:1.36
--- php-src/ext/mysqli/mysqli_nonapi.c:1.35 Wed Aug 25 09:57:35 2004
+++ php-src/ext/mysqli/mysqli_nonapi.c Tue Oct 19 01:14:09 2004
@@ -15,7 +15,7 @@
| Author: Georg Richter <georg@php.net> |
+----------------------------------------------------------------------+
- $Id: mysqli_nonapi.c,v 1.35 2004/08/25 13:57:35 georg Exp $
+ $Id: mysqli_nonapi.c,v 1.36 2004/10/19 05:14:09 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 {