summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Richter <georg@php.net>2004-10-19 05:14:09 +0000
committerGeorg Richter <georg@php.net>2004-10-19 05:14:09 +0000
commitf4f84ac9ab594a93f9642577e4879a9ec65e44e7 (patch)
treeec2ebf6cec4333c1232e85935d965474525c6521
parentd2f6707429f6eec30f272421c214a636315e76c0 (diff)
downloadphp-git-f4f84ac9ab594a93f9642577e4879a9ec65e44e7.tar.gz
Minor fix for mysqli_connect: checking socket_len for NULL Values
(Thx to Paul DuBois)
-rw-r--r--ext/mysqli/mysqli_nonapi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c
index 2d8f48d2a3..cf6fe7960c 100644
--- a/ext/mysqli/mysqli_nonapi.c
+++ b/ext/mysqli/mysqli_nonapi.c
@@ -49,6 +49,10 @@ PHP_FUNCTION(mysqli_connect)
return;
}
+ if (!socket_len) {
+ socket = NULL;
+ }
+
/* TODO: safe mode handling */
if (PG(sql_safe_mode)){
} else {