diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2011-02-28 15:18:27 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2011-02-28 15:18:27 +0000 |
| commit | 5d83ad8c44490ea4caa80f66e66e4c2cad010a32 (patch) | |
| tree | 72ffde349d25c70fb8d271e986a6a8790d00fbcd /ext/tokenizer/tokenizer.c | |
| parent | f657ba978b687661e813ed848ea5002c794f4b97 (diff) | |
| download | php-git-5d83ad8c44490ea4caa80f66e66e4c2cad010a32.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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/tokenizer/tokenizer.c b/ext/tokenizer/tokenizer.c index 2357f43015..ee28b3b8b4 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; + } } } |
