X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqcur.c;fp=src%2Fphp_pqcur.c;h=1ff10da22c5e9d103a2b0dc2aeacaa30a669efee;hp=16057e8c5420a20d4117efa8057b4ddbb53e9bdd;hb=863e93c99c953d39665df785cd3a9486d16c995b;hpb=c223e1c70b1b8bf27e44f481242dbaa6d6710462 diff --git a/src/php_pqcur.c b/src/php_pqcur.c index 16057e8..1ff10da 100644 --- a/src/php_pqcur.c +++ b/src/php_pqcur.c @@ -31,7 +31,7 @@ static HashTable php_pqcur_object_prophandlers; static void cur_close(php_pqcur_object_t *obj TSRMLS_DC) { - if (obj->intern->open) { + if (obj->intern->open && obj->intern->conn->intern) { PGresult *res; smart_str cmd = {0};