mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
@- Added new object VARIANT() to encapsulate values for use with
@ the COM and DOTNET module. Therefore it is now possible to pass @ values by reference, convert php values to extended variant types (currency, @ date, idispatch, iunknown, ...) and define the codepage that should @ be used for unicode - conversion.
This commit is contained in:
parent
8d6f13dc2b
commit
a15e465a34
2 changed files with 12 additions and 12 deletions
|
@ -234,18 +234,18 @@ PHP_FUNCTION(COM_load)
|
|||
codepage = CP_ACP;
|
||||
break;
|
||||
case 3:
|
||||
if (!INI_INT("allow_dcom")) {
|
||||
php_error(E_WARNING, "DCOM is disabled");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
getParameters(ht, 3, &module_name, &server_name, &code_page);
|
||||
|
||||
if (server_name->type == IS_NULL) {
|
||||
efree(server_name);
|
||||
server_name = NULL;
|
||||
}
|
||||
else
|
||||
} else {
|
||||
if (!INI_INT("allow_dcom")) {
|
||||
php_error(E_WARNING, "DCOM is disabled");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
convert_to_string(server_name);
|
||||
}
|
||||
|
||||
convert_to_long(code_page);
|
||||
codepage = code_page->value.lval;
|
||||
|
|
|
@ -234,18 +234,18 @@ PHP_FUNCTION(COM_load)
|
|||
codepage = CP_ACP;
|
||||
break;
|
||||
case 3:
|
||||
if (!INI_INT("allow_dcom")) {
|
||||
php_error(E_WARNING, "DCOM is disabled");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
getParameters(ht, 3, &module_name, &server_name, &code_page);
|
||||
|
||||
if (server_name->type == IS_NULL) {
|
||||
efree(server_name);
|
||||
server_name = NULL;
|
||||
}
|
||||
else
|
||||
} else {
|
||||
if (!INI_INT("allow_dcom")) {
|
||||
php_error(E_WARNING, "DCOM is disabled");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
convert_to_string(server_name);
|
||||
}
|
||||
|
||||
convert_to_long(code_page);
|
||||
codepage = code_page->value.lval;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue