diff options
| author | Georg Richter <georg@php.net> | 2004-10-19 05:14:09 +0000 |
|---|---|---|
| committer | Georg Richter <georg@php.net> | 2004-10-19 05:14:09 +0000 |
| commit | f4f84ac9ab594a93f9642577e4879a9ec65e44e7 (patch) | |
| tree | ec2ebf6cec4333c1232e85935d965474525c6521 | |
| parent | d2f6707429f6eec30f272421c214a636315e76c0 (diff) | |
| download | php-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.c | 4 |
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 { |
