diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-09-27 14:27:46 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-09-30 11:35:07 +0200 |
| commit | 01fc1a3057aee89a581cb4fa8a49412f271ab818 (patch) | |
| tree | 850879b36894e3e79a282ca8893f26369cf937e9 /ext/dom/php_dom.c | |
| parent | 7e776175337432ce04d24a8474ff45bc3a3c9453 (diff) | |
| download | php-git-01fc1a3057aee89a581cb4fa8a49412f271ab818.tar.gz | |
Remove most uses of the ERROR type
It is now only used to signal exceptions for property reads. ERROR
zvals are never returned back to the VM anymore, so there's no
need to check for them when receiving a VAR.
Also return MAY_BE_ERROR, as ERROR is now no longer relevant for
inference.
Diffstat (limited to 'ext/dom/php_dom.c')
| -rw-r--r-- | ext/dom/php_dom.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index 34666f1711..6fa3b920cd 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -1450,6 +1450,7 @@ static zval *dom_nodelist_read_dimension(zend_object *object, zval *offset, int zval offset_copy; if (!offset) { + zend_throw_error(NULL, "Cannot access node list without offset"); return NULL; } |
