mirror of
https://github.com/php/php-src.git
synced 2026-04-28 10:43:30 +02:00
Even more verbosity...
This commit is contained in:
@@ -179,7 +179,10 @@ PHP_FUNCTION(com_dotnet_create_instance)
|
||||
|
||||
if (ret == FAILURE) {
|
||||
char buf[1024];
|
||||
sprintf(buf, "Failed to instantiate .Net object [%s]", where);
|
||||
char *err = php_win_err(hr);
|
||||
snprintf(buf, sizeof(buf), "Failed to instantiate .Net object [%s] %s", where, err);
|
||||
if (err)
|
||||
LocalFree(err);
|
||||
php_com_throw_exception(hr, buf TSRMLS_CC);
|
||||
ZVAL_NULL(object);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user