summary |
shortlog |
log |
commit | commitdiff |
tree |
github
raw |
patch |
inline | side by side (from parent 1:
6051d47)
Segmentation fault after pg_terminate_backend
throw_exce(EX_UNINITIALIZED, "pq\\Connection not initialized");
} else {
PGresult *res = PQgetResult(obj->intern->conn);
throw_exce(EX_UNINITIALIZED, "pq\\Connection not initialized");
} else {
PGresult *res = PQgetResult(obj->intern->conn);
+ php_pq_object_t *res_obj;
- if (!res) {
- RETVAL_NULL();
+ if (res && (res_obj = PQresultInstanceData(res, php_pqconn_event))) {
+ php_pq_object_to_zval_no_addref(res_obj, return_value);
- php_pq_object_to_zval_no_addref(PQresultInstanceData(res, php_pqconn_event), return_value);
}
php_pqconn_notify_listeners(obj);
}
php_pqconn_notify_listeners(obj);