Skip to content

Commit 985f48f

Browse files
committed
Make this const to match refactors since rebase
1 parent e9b1e35 commit 985f48f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Zend/zend_exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ static void _build_trace_string(smart_str *str, const HashTable *ht, uint32_t nu
598598
/* }}} */
599599

600600
/* {{{ Gets the function arguments printed as a string from a backtrace frame. */
601-
ZEND_API zend_string *zend_trace_function_args_to_string(HashTable *frame) {
601+
ZEND_API zend_string *zend_trace_function_args_to_string(const HashTable *frame) {
602602
zval *tmp;
603603
smart_str str = {0};
604604
/* init because ASan will complain */

Zend/zend_exceptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ extern ZEND_API void (*zend_throw_exception_hook)(zend_object *ex);
7272
/* show an exception using zend_error(severity,...), severity should be E_ERROR */
7373
ZEND_API ZEND_COLD zend_result zend_exception_error(zend_object *exception, int severity);
7474
ZEND_NORETURN void zend_exception_uncaught_error(const char *prefix, ...) ZEND_ATTRIBUTE_FORMAT(printf, 1, 2);
75-
ZEND_API zend_string *zend_trace_function_args_to_string(HashTable *frame);
75+
ZEND_API zend_string *zend_trace_function_args_to_string(const HashTable *frame);
7676
ZEND_API zend_string *zend_trace_current_function_args_string(void);
7777
ZEND_API zend_string *zend_trace_to_string(const HashTable *trace, bool include_main);
7878

0 commit comments

Comments
 (0)