summaryrefslogtreecommitdiff
path: root/ext/tokenizer/tokenizer.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2011-02-28 15:18:27 +0000
committerIlia Alshanetsky <iliaa@php.net>2011-02-28 15:18:27 +0000
commit1d984a7ffd60a36875e04cbc2d4bbf1d4b1524c8 (patch)
treef3a06bd221148b153082ed09b271cd31310807a9 /ext/tokenizer/tokenizer.c
parente65d361fde2eb71d4070b9c881f5f02bb7f5eeed (diff)
downloadphp-git-1d984a7ffd60a36875e04cbc2d4bbf1d4b1524c8.tar.gz
Fixed bug #54089 (token_get_all() does not stop after __halt_compiler).
Diffstat (limited to 'ext/tokenizer/tokenizer.c')
-rw-r--r--ext/tokenizer/tokenizer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/tokenizer/tokenizer.c b/ext/tokenizer/tokenizer.c
index bab549bad7..add3168f7c 100644
--- a/ext/tokenizer/tokenizer.c
+++ b/ext/tokenizer/tokenizer.c
@@ -151,6 +151,10 @@ static void tokenize(zval *return_value TSRMLS_DC)
ZVAL_NULL(&token);
token_line = CG(zend_lineno);
+
+ if (token_type == T_HALT_COMPILER) {
+ break;
+ }
}
}