diff --git a/ext/com_dotnet/com_wrapper.c b/ext/com_dotnet/com_wrapper.c index df39239022455..6e885fa802e9f 100644 --- a/ext/com_dotnet/com_wrapper.c +++ b/ext/com_dotnet/com_wrapper.c @@ -424,7 +424,7 @@ static void generate_dispids(php_dispatchex *disp) zend_string *name = NULL; zval *tmp, tmp2; int keytype; - zend_ulong pid; + zend_long pid; if (disp->dispid_to_name == NULL) { ALLOC_HASHTABLE(disp->dispid_to_name); diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 1fa543fc9755f..f0e03a9343128 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -622,7 +622,7 @@ static int php_stdiop_cast(php_stream *stream, int castas, void **ret) } *(FILE**)ret = data->file; - data->fd = (int) SOCK_ERR; + data->fd = SOCK_ERR; } return SUCCESS;