cvs: php4 /ext/com COM.cpp

From: Date: Sun, 18 Feb 2001 16:49:05 +0000
Subject: cvs: php4 /ext/com COM.cpp
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4100@lists.php.net to get a copy of this message
phanto Sun Feb 18 08:49:05 2001 EDT Modified files: /php4/ext/com COM.cpp Log: @- 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. Index: php4/ext/com/COM.cpp diff -u php4/ext/com/COM.cpp:1.3 php4/ext/com/COM.cpp:1.4 --- php4/ext/com/COM.cpp:1.3 Fri Feb 16 18:15:12 2001 +++ php4/ext/com/COM.cpp Sun Feb 18 08:49:05 2001 @@ -234,18 +234,18 @@ 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;

« previous php.cvs (#4100) next »