File tree 3 files changed +3
-4
lines changed
3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -187,9 +187,8 @@ static ZEND_COLD void ini_error(const char *msg)
187
187
{
188
188
char *error_buf;
189
189
int error_buf_len;
190
- char *currently_parsed_filename;
191
190
192
- currently_parsed_filename = zend_ini_scanner_get_filename ();
191
+ const char * const currently_parsed_filename = zend_ini_scanner_get_filename ();
193
192
if (currently_parsed_filename) {
194
193
error_buf_len = 128 + (int )strlen (msg) + (int )strlen (currently_parsed_filename); /* should be more than enough */
195
194
error_buf = (char *) emalloc (error_buf_len);
Original file line number Diff line number Diff line change 27
27
28
28
BEGIN_EXTERN_C ()
29
29
ZEND_COLD int zend_ini_scanner_get_lineno (void );
30
- ZEND_COLD char * zend_ini_scanner_get_filename (void );
30
+ ZEND_COLD const char * zend_ini_scanner_get_filename (void );
31
31
zend_result zend_ini_open_file_for_scanning (zend_file_handle * fh , int scanner_mode );
32
32
zend_result zend_ini_prepare_string_for_scanning (char * str , int scanner_mode );
33
33
int ini_lex (zval * ini_lval );
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ ZEND_COLD int zend_ini_scanner_get_lineno(void)
261
261
/* }}} */
262
262
263
263
/* {{{ zend_ini_scanner_get_filename() */
264
- ZEND_COLD char *zend_ini_scanner_get_filename (void )
264
+ ZEND_COLD const char *zend_ini_scanner_get_filename (void )
265
265
{
266
266
return ini_filename ? ZSTR_VAL (ini_filename) : " Unknown" ;
267
267
}
You can’t perform that action at this time.
0 commit comments