X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fphp_pqconn_event.c;h=541892f5d11d2abedb715652fa1d3988e5737033;hb=67cf30cceef7c819daabc7928edf73b1d2b894ab;hp=f509c573867bdf17f742bca499cb045f97897abb;hpb=88440266c0a9fa8354688b5ed0d2a6cc3bf04db5;p=m6w6%2Fext-pq diff --git a/src/php_pqconn_event.c b/src/php_pqconn_event.c index f509c57..541892f 100644 --- a/src/php_pqconn_event.c +++ b/src/php_pqconn_event.c @@ -86,7 +86,7 @@ static void php_pqconn_event_resultcreate(PGEventResultCreate *event) } /* async callback */ - if (data->obj->intern->onevent.fci.size > 0) { + if (php_pq_callback_is_enabled(&data->obj->intern->onevent)) { zval *res = NULL; php_pq_object_to_zval(obj, &res TSRMLS_CC);