diff options
author | Ard Biesheuvel <abies@php.net> | 2004-06-16 23:57:25 +0000 |
---|---|---|
committer | Ard Biesheuvel <abies@php.net> | 2004-06-16 23:57:25 +0000 |
commit | 5232a5afea51e0cf996c67f6359ac3f810d4a7df (patch) | |
tree | df101b82806cb54a39ca819832016b42c5e98b5d /ext/com_dotnet | |
parent | 6527a454c67c259c0f21b82cc43f5fa8d957ce2a (diff) | |
download | php-git-5232a5afea51e0cf996c67f6359ac3f810d4a7df.tar.gz |
64-bit bugsquash party
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r-- | ext/com_dotnet/com_com.c | 6 | ||||
-rw-r--r-- | ext/com_dotnet/com_dotnet.c | 2 | ||||
-rwxr-xr-x | ext/com_dotnet/com_persist.c | 4 | ||||
-rw-r--r-- | ext/com_dotnet/com_variant.c | 14 | ||||
-rw-r--r-- | ext/com_dotnet/php_com_dotnet_internal.h | 2 |
5 files changed, 14 insertions, 14 deletions
diff --git a/ext/com_dotnet/com_com.c b/ext/com_dotnet/com_com.c index 166dd07994..39c90eae1f 100644 --- a/ext/com_dotnet/com_com.c +++ b/ext/com_dotnet/com_com.c @@ -37,7 +37,7 @@ PHP_FUNCTION(com_create_instance) php_com_dotnet_object *obj; char *module_name, *typelib_name = NULL, *server_name = NULL; char *user_name = NULL, *domain_name = NULL, *password = NULL; - long module_name_len, typelib_name_len, server_name_len, + int module_name_len, typelib_name_len, server_name_len, user_name_len, domain_name_len, password_len; OLECHAR *moniker; CLSID clsid; @@ -287,7 +287,7 @@ PHP_FUNCTION(com_get_active_object) { CLSID clsid; char *module_name; - long module_name_len; + int module_name_len; long code_page = COMG(code_page); IUnknown *unk = NULL; IDispatch *obj = NULL; @@ -799,7 +799,7 @@ PHP_FUNCTION(com_message_pump) PHP_FUNCTION(com_load_typelib) { char *name; - long namelen; + int namelen; ITypeLib *pTL = NULL; zend_bool cs = TRUE; int codepage = COMG(code_page); diff --git a/ext/com_dotnet/com_dotnet.c b/ext/com_dotnet/com_dotnet.c index 84137cfd87..7199b91aa7 100644 --- a/ext/com_dotnet/com_dotnet.c +++ b/ext/com_dotnet/com_dotnet.c @@ -98,7 +98,7 @@ PHP_FUNCTION(com_dotnet_create_instance) zval *object = getThis(); php_com_dotnet_object *obj; char *assembly_name, *datatype_name; - long assembly_name_len, datatype_name_len; + int assembly_name_len, datatype_name_len; struct dotnet_runtime_stuff *stuff; IObjectHandle *handle; DISPPARAMS params; diff --git a/ext/com_dotnet/com_persist.c b/ext/com_dotnet/com_persist.c index 12a7e32a4a..d9ba2aa350 100755 --- a/ext/com_dotnet/com_persist.c +++ b/ext/com_dotnet/com_persist.c @@ -375,7 +375,7 @@ CPH_METHOD(SaveToFile) { HRESULT res; char *filename, *fullpath = NULL; - long filename_len; + int filename_len; zend_bool remember = TRUE; OLECHAR *olefilename = NULL; CPH_FETCH(); @@ -438,7 +438,7 @@ CPH_METHOD(LoadFromFile) { HRESULT res; char *filename, *fullpath; - long filename_len; + int filename_len; long flags = 0; OLECHAR *olefilename; CPH_FETCH(); diff --git a/ext/com_dotnet/com_variant.c b/ext/com_dotnet/com_variant.c index 347a015c52..bf401f82e8 100644 --- a/ext/com_dotnet/com_variant.c +++ b/ext/com_dotnet/com_variant.c @@ -260,7 +260,7 @@ PHPAPI int php_com_zval_from_variant(zval *z, VARIANT *v, int codepage TSRMLS_DC /* {{{ com_variant_create_instance - ctor for new VARIANT() */ PHP_FUNCTION(com_variant_create_instance) { - VARTYPE vt = VT_EMPTY; + /* VARTYPE == unsigned short */ long vt = VT_EMPTY; long codepage = CP_ACP; zval *object = getThis(); php_com_dotnet_object *obj; @@ -290,7 +290,7 @@ PHP_FUNCTION(com_variant_create_instance) if (ZEND_NUM_ARGS() >= 2) { - res = VariantChangeType(&obj->v, &obj->v, 0, vt); + res = VariantChangeType(&obj->v, &obj->v, 0, (VARTYPE)vt); if (FAILED(res)) { char *werr, *msg; @@ -788,7 +788,7 @@ PHP_FUNCTION(variant_date_to_timestamp) Returns a variant date representation of a unix timestamp */ PHP_FUNCTION(variant_date_from_timestamp) { - int timestamp; + long timestamp; SYSTEMTIME systime; struct tm *tmv; VARIANT res; @@ -841,7 +841,7 @@ PHP_FUNCTION(variant_set_type) { zval *zobj; php_com_dotnet_object *obj; - VARTYPE vt; + /* VARTYPE == unsigned short */ long vt; HRESULT res; if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, @@ -850,7 +850,7 @@ PHP_FUNCTION(variant_set_type) } obj = CDNO_FETCH(zobj); - res = VariantChangeType(&obj->v, &obj->v, 0, vt); + res = VariantChangeType(&obj->v, &obj->v, 0, (VARTYPE)vt); if (SUCCEEDED(res)) { if (vt != VT_DISPATCH && obj->typeinfo) { @@ -876,7 +876,7 @@ PHP_FUNCTION(variant_cast) { zval *zobj; php_com_dotnet_object *obj; - VARTYPE vt; + /* VARTYPE == unsigned short */ long vt; VARIANT vres; HRESULT res; @@ -887,7 +887,7 @@ PHP_FUNCTION(variant_cast) obj = CDNO_FETCH(zobj); VariantInit(&vres); - res = VariantChangeType(&vres, &obj->v, 0, vt); + res = VariantChangeType(&vres, &obj->v, 0, (VARTYPE)vt); if (SUCCEEDED(res)) { php_com_wrap_variant(return_value, &vres, obj->code_page TSRMLS_CC); diff --git a/ext/com_dotnet/php_com_dotnet_internal.h b/ext/com_dotnet/php_com_dotnet_internal.h index 31ce713f17..f24f7cfbfb 100644 --- a/ext/com_dotnet/php_com_dotnet_internal.h +++ b/ext/com_dotnet/php_com_dotnet_internal.h @@ -36,7 +36,7 @@ typedef struct _php_com_dotnet_object { VARIANT v; ITypeInfo *typeinfo; - int code_page; + long code_page; unsigned int have_default_bind:1; zend_class_entry *ce; |