From 01fc1a3057aee89a581cb4fa8a49412f271ab818 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 27 Sep 2019 14:27:46 +0200 Subject: 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. --- ext/dom/php_dom.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/dom/php_dom.c') 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; } -- cgit v1.2.1