Skip to content

Commit

Permalink
Fixed ISSUE laruence#181
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Aug 13, 2015
1 parent 211ada4 commit 6016ff3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion yaf_dispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,11 @@ yaf_response_t * yaf_dispatcher_dispatch(yaf_dispatcher_t *dispatcher TSRMLS_DC)
return_response = zend_read_property(yaf_dispatcher_ce, dispatcher, ZEND_STRL(YAF_DISPATCHER_PROPERTY_NAME_RETURN), 1 TSRMLS_CC);

if (!Z_BVAL_P(return_response)) {
(void)yaf_response_send(response TSRMLS_CC);
zval *ret = NULL;
zend_call_method_with_0_params(&response, Z_OBJCE_P(response), NULL, "response", &ret);
if (ret) {
zval_ptr_dtor(&ret);
}
yaf_response_clear_body(response, NULL, 0 TSRMLS_CC);
}

Expand Down

0 comments on commit 6016ff3

Please sign in to comment.