diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-08-17 09:15:43 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-09-01 14:22:19 +0200 |
commit | 47d9446c48076b38a59a63c241504019dfeb0764 (patch) | |
tree | 0148a1336b19027cda9e6e20227d18d1c26cfea1 /ext/xmlwriter/php_xmlwriter.c | |
parent | 7476d2c1880576e98019d89562953a5486e7178f (diff) | |
download | php-git-47d9446c48076b38a59a63c241504019dfeb0764.tar.gz |
Promote warnings to exceptions in ext/soap and ext/xmlwriter
Closes GH-5998
Diffstat (limited to 'ext/xmlwriter/php_xmlwriter.c')
-rw-r--r-- | ext/xmlwriter/php_xmlwriter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index a6740729bb..3dfaab97ee 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -896,8 +896,8 @@ PHP_FUNCTION(xmlwriter_open_uri) } if (source_len == 0) { - php_error_docref(NULL, E_WARNING, "Empty string as source"); - RETURN_FALSE; + zend_argument_value_error(1, "cannot be empty"); + RETURN_THROWS(); } valid_file = _xmlwriter_get_valid_file_path(source, resolved_path, MAXPATHLEN); |