diff --git a/extension/php_xhprof.h b/extension/php_xhprof.h old mode 100644 new mode 100755 index bce4e811..2d5348d1 --- a/extension/php_xhprof.h +++ b/extension/php_xhprof.h @@ -39,7 +39,7 @@ extern zend_module_entry xhprof_module_entry; */ /* XHProf version */ -#define XHPROF_VERSION "2.0.2" +#define XHPROF_VERSION "2.0.3" /* Fictitious function name to represent top of the call tree. The paranthesis * in the name is to ensure we don't conflict with user function names. */ diff --git a/extension/xhprof.c b/extension/xhprof.c old mode 100644 new mode 100755 index 5828176d..4a28ac23 --- a/extension/xhprof.c +++ b/extension/xhprof.c @@ -853,7 +853,7 @@ static uint64 cpu_timer() struct rusage ru; getrusage(RUSAGE_SELF, &ru); - return (ru.ru_utime.tv_sec + ru.ru_stime.tv_sec ) * 1000 * 1000 + (ru.ru_utime.tv_usec + ru.ru_stime.tv_usec); + return (ru.ru_utime.tv_sec + ru.ru_stime.tv_sec ) * 1000 * 1000 + (ru.ru_utime.tv_usec + ru.ru_stime.tv_usec); #endif } @@ -1605,7 +1605,7 @@ char *hp_get_trace_callback(char* symbol, zend_execute_data *data) char *result; hp_trace_callback *callback; - callback = (hp_trace_callback*)zend_hash_str_find(XHPROF_G(trace_callbacks), symbol, strlen(symbol)); + callback = (hp_trace_callback*)zend_hash_str_find_ptr(XHPROF_G(trace_callbacks), symbol, strlen(symbol)); if (callback) { result = (*callback)(symbol, data); } else {