]> 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:17:26 +0000 (05:17 +0000)
committerGeorg Richter <georg@php.net>
Tue, 19 Oct 2004 05:17:26 +0000 (05:17 +0000)
(Thx to Paul DuBois)

ext/mysqli/mysqli_nonapi.c

index 2d8f48d2a34b12e3440db0dd2d5594f291a0770e..13a9ee23c5b02d5e629ccf82961e409167ee4a85 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 {