mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Throw Error on uninitialized XMLWriter
This commit is contained in:
parent
fc7bab3aee
commit
1511bdae96
1 changed files with 2 additions and 2 deletions
|
@ -38,8 +38,8 @@ typedef int (*xmlwriter_read_int_t)(xmlTextWriterPtr writer);
|
|||
ze_xmlwriter_object *obj = Z_XMLWRITER_P(object); \
|
||||
ptr = obj->ptr; \
|
||||
if (!ptr) { \
|
||||
php_error_docref(NULL, E_WARNING, "Invalid or uninitialized XMLWriter object"); \
|
||||
RETURN_FALSE; \
|
||||
zend_throw_error(NULL, "Invalid or uninitialized XMLWriter object"); \
|
||||
RETURN_THROWS(); \
|
||||
} \
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue