summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2005-10-21 09:33:04 +0000
committerDmitry Stogov <dmitry@php.net>2005-10-21 09:33:04 +0000
commit5fd04023dcf28a9fc932a19a95d2a4794b637ed1 (patch)
treea3a6f3771a40d96f9421ec953938f3b757d4ba1c /ext
parent6ef4239827aec605ba5f65c42cea45a3517b7e44 (diff)
downloadphp-git-5fd04023dcf28a9fc932a19a95d2a4794b637ed1.tar.gz
Fixed bug #34782 (token_get_all() gives wrong result)
Diffstat (limited to 'ext')
-rw-r--r--ext/tokenizer/tokenizer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/tokenizer/tokenizer.c b/ext/tokenizer/tokenizer.c
index 55cbfed97f..4d2f78893c 100644
--- a/ext/tokenizer/tokenizer.c
+++ b/ext/tokenizer/tokenizer.c
@@ -521,6 +521,8 @@ PHP_FUNCTION(token_get_all)
RETURN_EMPTY_STRING();
}
+ LANG_SCNG(start) = 1;
+
tokenize(return_value TSRMLS_CC);
zend_restore_lexical_state(&original_lex_state TSRMLS_CC);