Skip to content

Commit

Permalink
Minor fix for mysqli_connect: checking socket_len for NULL Values
Browse files Browse the repository at this point in the history
(Thx to Paul DuBois)
  • Loading branch information
Georg Richter committed Oct 19, 2004
1 parent d2f6707 commit f4f84ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/mysqli/mysqli_nonapi.c
Expand Up @@ -49,6 +49,10 @@ PHP_FUNCTION(mysqli_connect)
return;
}

if (!socket_len) {
socket = NULL;
}

/* TODO: safe mode handling */
if (PG(sql_safe_mode)){
} else {
Expand Down

0 comments on commit f4f84ac

Please sign in to comment.