diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2005-02-24 23:58:59 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2005-02-24 23:58:59 +0000 |
| commit | a3085602d0a430b285c2e3a03d85765139ba7d14 (patch) | |
| tree | 48ec38fdc7eea2e59b127248d38c5d12bfd7285d /ext/mysqli/mysqli_nonapi.c | |
| parent | e2974d755d8733972a1062f5aabd010cf5ed1574 (diff) | |
| download | php-git-a3085602d0a430b285c2e3a03d85765139ba7d14.tar.gz | |
Fixed bug #32081 (default socket value is not being used).
Diffstat (limited to 'ext/mysqli/mysqli_nonapi.c')
| -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 566df49b1f..16e4585e5e 100644 --- a/ext/mysqli/mysqli_nonapi.c +++ b/ext/mysqli/mysqli_nonapi.c @@ -83,6 +83,10 @@ PHP_FUNCTION(mysqli_connect) } #endif + if (!socket) { + socket = MyG(default_socket); + } + if (mysql_real_connect(mysql->mysql,hostname,username,passwd,dbname,port,socket,CLIENT_MULTI_RESULTS) == NULL) { /* Save error messages */ |
