Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ext/com_dotnet/com_com.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ext/com_dotnet/tests/lookup_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ try {
}
?>
--EXPECTF--
Unable to lookup `unknownProperty': %s
Unable to lookup "unknownProperty": %s
2 changes: 1 addition & 1 deletion ext/com_dotnet/tests/variant_variation3.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ object(variant)#%d (0) {
}
object(variant)#%d (0) {
}
Unable to lookup `qux': %s
Unable to lookup "qux": %s