diff --git a/Zend/zend.c b/Zend/zend.c index f99a580fa1e..d51bd277a61 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -983,7 +983,7 @@ ZEND_COLD void zenderror(const char *error) /* {{{ */ /* }}} */ BEGIN_EXTERN_C() -ZEND_API ZEND_COLD void _zend_bailout(char *filename, uint32_t lineno) /* {{{ */ +ZEND_API ZEND_COLD void _zend_bailout(const char *filename, uint32_t lineno) /* {{{ */ { if (!EG(bailout)) { diff --git a/Zend/zend.h b/Zend/zend.h index bf4a6629a30..87d4b8fcba0 100644 --- a/Zend/zend.h +++ b/Zend/zend.h @@ -225,7 +225,7 @@ void zend_register_standard_ini_entries(void); void zend_post_startup(void); void zend_set_utility_values(zend_utility_values *utility_values); -ZEND_API ZEND_COLD void _zend_bailout(char *filename, uint32_t lineno); +ZEND_API ZEND_COLD void _zend_bailout(const char *filename, uint32_t lineno); ZEND_API size_t zend_vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap); ZEND_API size_t zend_spprintf(char **message, size_t max_len, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4);