We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc7bab3 commit 1511bdaCopy full SHA for 1511bda
ext/xmlwriter/php_xmlwriter.c
@@ -38,8 +38,8 @@ typedef int (*xmlwriter_read_int_t)(xmlTextWriterPtr writer);
38
ze_xmlwriter_object *obj = Z_XMLWRITER_P(object); \
39
ptr = obj->ptr; \
40
if (!ptr) { \
41
- php_error_docref(NULL, E_WARNING, "Invalid or uninitialized XMLWriter object"); \
42
- RETURN_FALSE; \
+ zend_throw_error(NULL, "Invalid or uninitialized XMLWriter object"); \
+ RETURN_THROWS(); \
43
} \
44
}
45
/* }}} */
0 commit comments