1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

Cleanup DOM exception throwing parameters (#14330)

This commit is contained in:
Niels Dossche
2024-05-26 14:01:37 +02:00
committed by GitHub
parent 1b78121928
commit ab80392710
2 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@
* Since:
*/
void php_dom_throw_error_with_message(int error_code, char *error_message, bool strict_error) /* {{{ */
void php_dom_throw_error_with_message(dom_exception_code error_code, const char *error_message, bool strict_error) /* {{{ */
{
if (strict_error) {
zend_throw_exception(dom_domexception_class_entry, error_message, error_code);
@@ -41,9 +41,9 @@ void php_dom_throw_error_with_message(int error_code, char *error_message, bool
/* }}} */
/* {{{ php_dom_throw_error */
void php_dom_throw_error(int error_code, bool strict_error)
void php_dom_throw_error(dom_exception_code error_code, bool strict_error)
{
char *error_message;
const char *error_message;
switch (error_code)
{

View File

@@ -130,8 +130,8 @@ zend_object *dom_nnodemap_objects_new(zend_class_entry *class_type);
zend_object *dom_xpath_objects_new(zend_class_entry *class_type);
#endif
bool dom_get_strict_error(php_libxml_ref_obj *document);
void php_dom_throw_error(int error_code, bool strict_error);
void php_dom_throw_error_with_message(int error_code, char *error_message, bool strict_error);
void php_dom_throw_error(dom_exception_code error_code, bool strict_error);
void php_dom_throw_error_with_message(dom_exception_code error_code, const char *error_message, bool strict_error);
void node_list_unlink(xmlNodePtr node);
int dom_check_qname(char *qname, char **localname, char **prefix, int uri_len, int name_len);
xmlNsPtr dom_get_ns(xmlNodePtr node, char *uri, int *errorcode, char *prefix);