[php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/xml (#23173)

From: Date: Tue, 17 Nov 2026 23:27:09 +0000
Subject: [php-src] PHP-8.6: [`%pS` migration] Use `%pS` in ext/xml (#23173)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143812@lists.php.net to get a copy of this message
Author: Daniel Scherzer (DanielEScherzer) Committer: GitHub (web-flow) Pusher: DanielEScherzer Date: 2026-11-17T15:27:06-08:00 Commit: https://github.com/php/php-src/commit/1e0323e2519bc880e78719640f8a1579417eb73c Raw diff: https://github.com/php/php-src/commit/1e0323e2519bc880e78719640f8a1579417eb73c.diff [%pS migration] Use %pS in ext/xml (#23173) Changed paths: M ext/xml/xml.c Diff: diff --git a/ext/xml/xml.c b/ext/xml/xml.c index 16a95fcbee94..8247aaf20bf8 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -1176,7 +1176,7 @@ static bool php_xml_check_string_method_arg( zend_function *method_ptr = zend_hash_find_ptr_lc(&ce->function_table, method_name); if (!method_ptr) { if (arg_num) { - zend_argument_value_error(arg_num, "method %s::%s() does not exist", ZSTR_VAL(ce->name), ZSTR_VAL(method_name)); + zend_argument_value_error(arg_num, "method %pS::%pS() does not exist", ce->name, method_name); } return false; } @@ -1200,8 +1200,8 @@ static bool php_xml_check_string_method_arg( zend_fcc_dtor(&parser_to_check->fcc_field); \ bool status = php_xml_check_string_method_arg(0, new_this_obj, method_name, &parser_to_check->fcc_field); \ if (status == false) { \ - zend_argument_value_error(2, "cannot safely swap to object of class %s as method \"%s\" does not exist, which was set via " handler_set_method, \ - ZSTR_VAL(new_this_obj->ce->name), ZSTR_VAL(method_name)); \ + zend_argument_value_error(2, "cannot safely swap to object of class %pS as method \"%pS\" does not exist, which was set via " handler_set_method, \ + new_this_obj->ce->name, method_name); \ zend_string_release(method_name); \ RETURN_THROWS(); \ } \

« previous php.cvs (#143812) next »