mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
fix dtrace observer callback prototype
This commit is contained in:
@@ -109,10 +109,10 @@ ZEND_API void dtrace_execute_internal(zend_execute_data *execute_data, zval *ret
|
||||
}
|
||||
}
|
||||
|
||||
void dtrace_error_notify_cb(int type, const char *error_filename, uint32_t error_lineno, zend_string *message)
|
||||
void dtrace_error_notify_cb(int type, zend_string *error_filename, uint32_t error_lineno, zend_string *message)
|
||||
{
|
||||
if (DTRACE_ERROR_ENABLED()) {
|
||||
DTRACE_ERROR(ZSTR_VAL(message), (char *)error_filename, error_lineno);
|
||||
DTRACE_ERROR(ZSTR_VAL(message), ZSTR_VAL(error_filename), error_lineno);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ ZEND_API void dtrace_execute_ex(zend_execute_data *execute_data);
|
||||
ZEND_API void dtrace_execute_internal(zend_execute_data *execute_data, zval *return_value);
|
||||
#include <zend_dtrace_gen.h>
|
||||
|
||||
void dtrace_error_notify_cb(int type, const char *error_filename, uint32_t error_lineno, zend_string *message);
|
||||
void dtrace_error_notify_cb(int type, zend_string *error_filename, uint32_t error_lineno, zend_string *message);
|
||||
|
||||
#endif /* HAVE_DTRACE */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user