Skip to content

Commit

Permalink
back to beta
Browse files Browse the repository at this point in the history
  • Loading branch information
longxinH committed Jul 5, 2021
1 parent 6db9ee9 commit 5764a0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion extension/php_xhprof.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extern zend_module_entry xhprof_module_entry;
*/

/* XHProf version */
#define XHPROF_VERSION "2.3.2"
#define XHPROF_VERSION "2.3.3-dev"

#define XHPROF_FUNC_HASH_COUNTERS_SIZE 1024

Expand Down
14 changes: 7 additions & 7 deletions extension/xhprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -1008,19 +1008,19 @@ static void tracer_observer_end(zend_execute_data *ex, zval *return_value) {
}
}


static zend_observer_fcall_handlers tracer_observer(zend_execute_data *execute_data) {
zend_observer_fcall_handlers handlers = {NULL, NULL};
if (!XHPROF_G(enabled)) {
return (zend_observer_fcall_handlers){NULL, NULL};
return handlers;
}

zend_function *func = execute_data->func;

if (!func->common.function_name) {
return (zend_observer_fcall_handlers){NULL, NULL};
if (!execute_data->func || !execute_data->func->common.function_name) {
return handlers;
}

return (zend_observer_fcall_handlers){tracer_observer_begin, tracer_observer_end};
handlers.begin = tracer_observer_begin;
handlers.end = tracer_observer_end;
return handlers;
}
#else
ZEND_DLEXPORT void hp_execute_ex (zend_execute_data *execute_data)
Expand Down

0 comments on commit 5764a0a

Please sign in to comment.