Commit 0db182a5e95 for php
commit 0db182a5e95863c91628d9a5c6ba768d3a03b289
Author: Gina Peter Banyard <girgias@php.net>
Date: Fri Nov 27 14:05:51 2026 +0000
com: fix quotemarks in error messages (#25789)
diff --git a/ext/com_dotnet/com_com.c b/ext/com_dotnet/com_com.c
index 8997ecf4e62..bff975c80c5 100644
--- a/ext/com_dotnet/com_com.c
+++ b/ext/com_dotnet/com_com.c
@@ -216,7 +216,7 @@ PHP_METHOD(com, __construct)
char *werr, *msg;
werr = php_win32_error_to_msg(res);
- spprintf(&msg, 0, "Failed to create COM object `%s': %s", module_name, werr);
+ spprintf(&msg, 0, "Failed to create COM object \"%s\": %s", module_name, werr);
php_win32_error_msg_free(werr);
php_com_throw_exception(res, msg);
@@ -471,7 +471,7 @@ zend_result php_com_do_invoke_byref(php_com_dotnet_object *obj, zend_internal_fu
if (FAILED(hr)) {
char *msg = NULL;
char *winerr = php_win32_error_to_msg(hr);
- spprintf(&msg, 0, "Unable to lookup `%s': %s", ZSTR_VAL(f->function_name), winerr);
+ spprintf(&msg, 0, "Unable to lookup \"%pS\": %s", f->function_name, winerr);
php_win32_error_msg_free(winerr);
php_com_throw_exception(hr, msg);
efree(msg);
@@ -638,7 +638,7 @@ zend_result php_com_do_invoke(php_com_dotnet_object *obj, zend_string *name,
if (FAILED(hr)) {
char *winerr = php_win32_error_to_msg(hr);
- spprintf(&msg, 0, "Unable to lookup `%pS': %s", name, winerr);
+ spprintf(&msg, 0, "Unable to lookup \"%pS\": %s", name, winerr);
php_win32_error_msg_free(winerr);
php_com_throw_exception(hr, msg);
efree(msg);
diff --git a/ext/com_dotnet/tests/lookup_error.phpt b/ext/com_dotnet/tests/lookup_error.phpt
index beb276eb8d9..bf24d2e310e 100644
--- a/ext/com_dotnet/tests/lookup_error.phpt
+++ b/ext/com_dotnet/tests/lookup_error.phpt
@@ -12,4 +12,4 @@
}
?>
--EXPECTF--
-Unable to lookup `unknownProperty': %s
+Unable to lookup "unknownProperty": %s
diff --git a/ext/com_dotnet/tests/variant_variation3.phpt b/ext/com_dotnet/tests/variant_variation3.phpt
index cb77f6982c8..dde97b3a088 100644
--- a/ext/com_dotnet/tests/variant_variation3.phpt
+++ b/ext/com_dotnet/tests/variant_variation3.phpt
@@ -38,4 +38,4 @@ public function stdClass() {
}
object(variant)#%d (0) {
}
-Unable to lookup `qux': %s
+Unable to lookup "qux": %s