Sebastian Bergmann wrote: > tokenizer.c > C:\home\php\php4\ext\tokenizer\tokenizer.c(328): error C2198: > 'lex_scan': Not enough parameters > C:\home\php\php4\ext\tokenizer\tokenizer.c(344): error C2065: > 'tsrm_ls': Undeclared identifier > C:\home\php\php4\ext\tokenizer\tokenizer.c(483): error C2198: > 'zend_save_lexical_state': Not enough parameters > C:\home\php\php4\ext\tokenizer\tokenizer.c(485): error C2198: > 'zend_prepare_string_for_scanning': Not enough parameters > C:\home\php\php4\ext\tokenizer\tokenizer.c(491): error C2198: > 'zend_restore_lexical_state': Not enough parameters
The patch below leaves only one error and one warning: C:\home\php\php4\ext\tokenizer\tokenizer.c(328): error C2065: 'tsrm_ls': Undeclared identifier Adding a TSRMLS_FETCH() call doesn't cure this :-( C:\home\php\php4\ext\tokenizer\tokenizer.c(328): warning C4022: 'lex_scan': Incorrect pointer type for parameter 2 Index: tokenizer.c =================================================================== RCS file: /repository/php4/ext/tokenizer/tokenizer.c,v retrieving revision 1.1 diff -u -2 -b -w -B -r1.1 tokenizer.c --- tokenizer.c 8 Feb 2002 18:49:40 -0000 1.1 +++ tokenizer.c 8 Feb 2002 22:35:42 -0000 @@ -326,5 +326,5 @@ ZVAL_NULL(&token); - while ((token_type = lex_scan(&token CLS_CC))) { + while ((token_type = lex_scan(&token TSRMLS_CC))) { destroy = 1; switch (token_type) { @@ -481,7 +481,7 @@ ZVAL_STRINGL(&source_z, source, source_len, 0); - zend_save_lexical_state(&original_lex_state CLS_CC); + zend_save_lexical_state(&original_lex_state TSRMLS_CC); - if (zend_prepare_string_for_scanning(&source_z, "") == FAILURE) { + if (zend_prepare_string_for_scanning(&source_z, "" TSRMLS_CC) == FAILURE ) { RETURN_EMPTY_STRING(); } @@ -489,5 +489,5 @@ tokenize(return_value); - zend_restore_lexical_state(&original_lex_state CLS_CC); + zend_restore_lexical_state(&original_lex_state TSRMLS_CC); } /* }}} */ -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php