mirror of
https://github.com/cytopia/devilbox.git
synced 2025-02-20 17:33:05 +00:00
DVL-002 Prevent HHVM from segfaulting during pg_connect
This commit is contained in:
parent
567ba57a13
commit
cb512b4ac4
@ -128,7 +128,8 @@ class Postgres
|
||||
if ($database !== null) {
|
||||
$link = pg_pconnect('host='.$host.' dbname='.$database.' user='.$user.' password='.$pass);
|
||||
} else {
|
||||
$link = pg_pconnect('host='.$host.' user='.$user.' password='.$pass);
|
||||
// NOTE: using dbname=postgres prevents HHVM from segfaulting
|
||||
$link = pg_pconnect('host='.$host.' dbname=postgres user='.$user.' password='.$pass);
|
||||
}
|
||||
error_reporting(-1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user