Skip to content

Commit f4a43ea

Browse files
committed
Make this const to match refactors since rebase
1 parent db2184a commit f4a43ea

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Zend/zend_exceptions.c

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

623623
/* {{{ Gets the function arguments printed as a string from a backtrace frame. */
624-
ZEND_API zend_string *zend_trace_function_args_to_string(HashTable *frame) {
624+
ZEND_API zend_string *zend_trace_function_args_to_string(const HashTable *frame) {
625625
zval *tmp;
626626
smart_str str = {0};
627627
/* init because ASan will complain */

Zend/zend_exceptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ ZEND_API zend_result zend_update_exception_properties(zend_execute_data *execute
6666
/* show an exception using zend_error(severity,...), severity should be E_ERROR */
6767
ZEND_API ZEND_COLD zend_result zend_exception_error(zend_object *exception, int severity);
6868
ZEND_NORETURN void zend_exception_uncaught_error(const char *prefix, ...) ZEND_ATTRIBUTE_FORMAT(printf, 1, 2);
69-
ZEND_API zend_string *zend_trace_function_args_to_string(HashTable *frame);
69+
ZEND_API zend_string *zend_trace_function_args_to_string(const HashTable *frame);
7070
ZEND_API zend_string *zend_trace_current_function_args_string(void);
7171
ZEND_API zend_string *zend_trace_to_string(const HashTable *trace, bool include_main);
7272

0 commit comments

Comments
 (0)