version 1.1.1.1, 2012/02/21 23:47:53
|
version 1.1.1.2, 2012/05/29 12:34:36
|
Line 202 PHP_FUNCTION(com_dotnet_create_instance)
|
Line 202 PHP_FUNCTION(com_dotnet_create_instance)
|
hr = dotnet_init(&where TSRMLS_CC); |
hr = dotnet_init(&where TSRMLS_CC); |
if (FAILED(hr)) { |
if (FAILED(hr)) { |
char buf[1024]; |
char buf[1024]; |
char *err = php_win_err(hr); | char *err = php_win32_error_to_msg(hr); |
snprintf(buf, sizeof(buf), "Failed to init .Net runtime [%s] %s", where, err); |
snprintf(buf, sizeof(buf), "Failed to init .Net runtime [%s] %s", where, err); |
if (err) |
if (err) |
LocalFree(err); |
LocalFree(err); |
Line 281 PHP_FUNCTION(com_dotnet_create_instance)
|
Line 281 PHP_FUNCTION(com_dotnet_create_instance)
|
|
|
if (ret == FAILURE) { |
if (ret == FAILURE) { |
char buf[1024]; |
char buf[1024]; |
char *err = php_win_err(hr); | char *err = php_win32_error_to_msg(hr); |
snprintf(buf, sizeof(buf), "Failed to instantiate .Net object [%s] [0x%08x] %s", where, hr, err); |
snprintf(buf, sizeof(buf), "Failed to instantiate .Net object [%s] [0x%08x] %s", where, hr, err); |
if (err && err[0]) { |
if (err && err[0]) { |
LocalFree(err); |
LocalFree(err); |