diff options
| author | Anatol Belski <ab@php.net> | 2014-08-19 22:23:03 +0200 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2014-08-19 22:23:03 +0200 |
| commit | 074172061e5d832b628b24afa81fbc3a0962029e (patch) | |
| tree | 5853b7ce7c3771d24cb9d9323291542f8bcf5b37 /ext/com_dotnet/com_persist.c | |
| parent | 919b996527c0d488db67cc5f1d2e18e902bcadde (diff) | |
| download | php-git-074172061e5d832b628b24afa81fbc3a0962029e.tar.gz | |
ported ext/com_dotnet
Diffstat (limited to 'ext/com_dotnet/com_persist.c')
| -rw-r--r-- | ext/com_dotnet/com_persist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/com_dotnet/com_persist.c b/ext/com_dotnet/com_persist.c index 4a85a7c8df..2a2657ae3c 100644 --- a/ext/com_dotnet/com_persist.c +++ b/ext/com_dotnet/com_persist.c @@ -439,7 +439,7 @@ CPH_METHOD(LoadFromFile) HRESULT res; char *filename, *fullpath; int filename_len; - long flags = 0; + php_int_t flags = 0; OLECHAR *olefilename; CPH_FETCH(); @@ -448,7 +448,7 @@ CPH_METHOD(LoadFromFile) res = get_persist_file(helper); if (helper->ipf) { - if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|l", + if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|i", &filename, &filename_len, &flags)) { php_com_throw_exception(E_INVALIDARG, "Invalid arguments" TSRMLS_CC); return; @@ -506,7 +506,7 @@ CPH_METHOD(GetMaxStreamSize) php_com_throw_exception(res, NULL TSRMLS_CC); } else { /* TODO: handle 64 bit properly */ - RETURN_INT((LONG)size.QuadPart); + RETURN_INT((php_int_t)size.QuadPart); } } /* }}} */ |
