]> granicus.if.org Git - php/commitdiff
Minor fix for mysqli_connect: checking socket_len for NULL Values
authorGeorg Richter <georg@php.net>
Tue, 19 Oct 2004 05:14:09 +0000 (05:14 +0000)
committerGeorg Richter <georg@php.net>
Tue, 19 Oct 2004 05:14:09 +0000 (05:14 +0000)
(Thx to Paul DuBois)

ext/mysqli/mysqli_nonapi.c

index 2d8f48d2a34b12e3440db0dd2d5594f291a0770e..cf6fe7960ca3db265cc66ab3b49f1cb98a9d33ad 100644 (file)
@@ -49,6 +49,10 @@ PHP_FUNCTION(mysqli_connect)
                return;
        }
 
+       if (!socket_len) {
+               socket = NULL;
+       }
+    
        /* TODO: safe mode handling */
        if (PG(sql_safe_mode)){
        } else {