diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-14 16:49:43 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-14 16:50:12 +0100 |
commit | 8a4068988b26e5411edfad6ceeb14cda3b9245e8 (patch) | |
tree | e8ef636466de8a65f42d288d125010a65821a9bc /ext/tokenizer/tokenizer.c | |
parent | 95ea8b08b85336ec00615984e19b7b4bbfb4af1a (diff) | |
download | php-git-8a4068988b26e5411edfad6ceeb14cda3b9245e8.tar.gz |
Clarify that token_get_all() never returns false
It can only fail in TOKEN_PARSE mode, in which case it will throw.
Diffstat (limited to 'ext/tokenizer/tokenizer.c')
-rw-r--r-- | ext/tokenizer/tokenizer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/tokenizer/tokenizer.c b/ext/tokenizer/tokenizer.c index cf5be94226..1ac5275ff0 100644 --- a/ext/tokenizer/tokenizer.c +++ b/ext/tokenizer/tokenizer.c @@ -274,7 +274,9 @@ PHP_FUNCTION(token_get_all) zend_clear_exception(); } - if (!success) RETURN_FALSE; + if (!success) { + RETURN_THROWS(); + } } /* }}} */ |