mirror of
https://github.com/php/php-src.git
synced 2025-01-21 19:24:16 +08:00
TSRMLS fix
This commit is contained in:
parent
3b7da77480
commit
910e20064a
@ -68,7 +68,7 @@ static void build_runtime_defined_function_key(zval *result, char *name, int nam
|
||||
uint char_pos_len;
|
||||
char *filename;
|
||||
|
||||
char_pos_len = zend_sprintf(char_pos_buf, "%x", zend_get_last_accepting_character_position());
|
||||
char_pos_len = zend_sprintf(char_pos_buf, "%x", zend_get_last_accepting_character_position(TSRMLS_C));
|
||||
if (CG(active_op_array)->filename) {
|
||||
filename = CG(active_op_array)->filename;
|
||||
} else {
|
||||
|
@ -53,7 +53,7 @@ int zend_compare_file_handles(zend_file_handle *fh1, zend_file_handle *fh2);
|
||||
ZEND_API void zend_save_lexical_state(zend_lex_state *lex_state TSRMLS_DC);
|
||||
ZEND_API void zend_restore_lexical_state(zend_lex_state *lex_state TSRMLS_DC);
|
||||
ZEND_API int zend_prepare_string_for_scanning(zval *str, char *filename TSRMLS_DC);
|
||||
char *zend_get_last_accepting_character_position();
|
||||
char *zend_get_last_accepting_character_position(TSRMLS_D);
|
||||
|
||||
END_EXTERN_C()
|
||||
|
||||
|
@ -178,7 +178,7 @@ ZEND_API void zend_save_lexical_state(zend_lex_state *lex_state TSRMLS_DC)
|
||||
#endif /* ZEND_MULTIBYTE */
|
||||
}
|
||||
|
||||
char *zend_get_last_accepting_character_position()
|
||||
char *zend_get_last_accepting_character_position(TSRMLS_D)
|
||||
{
|
||||
return SCNG(_yy_last_accepting_cpos);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user