diff options
Diffstat (limited to 'ext/dom/entity.c')
-rw-r--r-- | ext/dom/entity.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/dom/entity.c b/ext/dom/entity.c index 7ad43a1ee3..53f2b20bd1 100644 --- a/ext/dom/entity.c +++ b/ext/dom/entity.c @@ -41,7 +41,7 @@ int dom_entity_public_id_read(dom_object *obj, zval *retval) xmlEntity *nodep = (xmlEntity *) dom_object_get_node(obj); if (nodep == NULL) { - php_dom_throw_error(INVALID_STATE_ERR, 0); + php_dom_throw_error(INVALID_STATE_ERR, 1); return FAILURE; } @@ -66,7 +66,7 @@ int dom_entity_system_id_read(dom_object *obj, zval *retval) xmlEntity *nodep = (xmlEntity *) dom_object_get_node(obj); if (nodep == NULL) { - php_dom_throw_error(INVALID_STATE_ERR, 0); + php_dom_throw_error(INVALID_STATE_ERR, 1); return FAILURE; } @@ -92,7 +92,7 @@ int dom_entity_notation_name_read(dom_object *obj, zval *retval) char *content; if (nodep == NULL) { - php_dom_throw_error(INVALID_STATE_ERR, 0); + php_dom_throw_error(INVALID_STATE_ERR, 1); return FAILURE; } |