diff --git a/ext/com_dotnet/com_com.c b/ext/com_dotnet/com_com.c index 8997ecf4e626..bff975c80c53 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 beb276eb8d99..bf24d2e310ee 100644 --- a/ext/com_dotnet/tests/lookup_error.phpt +++ b/ext/com_dotnet/tests/lookup_error.phpt @@ -12,4 +12,4 @@ try { } ?> --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 cb77f6982c87..dde97b3a0887 100644 --- a/ext/com_dotnet/tests/variant_variation3.phpt +++ b/ext/com_dotnet/tests/variant_variation3.phpt @@ -38,4 +38,4 @@ object(variant)#%d (0) { } object(variant)#%d (0) { } -Unable to lookup `qux': %s +Unable to lookup "qux": %s