TSRMLS fix

This commit is contained in:
Wez Furlong 2004-01-11 21:39:40 +00:00
parent 3b7da77480
commit 910e20064a
3 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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()

View File

@ -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);
}