diff options
author | Holger Zimmermann <holger@php.net> | 2003-04-19 16:11:36 +0000 |
---|---|---|
committer | Holger Zimmermann <holger@php.net> | 2003-04-19 16:11:36 +0000 |
commit | 93a53656a5f306a5fb0859c041c138a7bb3a25d9 (patch) | |
tree | 1a72256e73db244bcf42ab8d0db62f91d19c56f5 /sapi/pi3web/pi3web_sapi.c | |
parent | de76ceb2d300f7a4e6bde5edfe59d658043a4096 (diff) | |
download | php-git-93a53656a5f306a5fb0859c041c138a7bb3a25d9.tar.gz |
Added PHP4PI3WEB_EXPORTS in order to control exports/imports on Win32
Diffstat (limited to 'sapi/pi3web/pi3web_sapi.c')
-rw-r--r-- | sapi/pi3web/pi3web_sapi.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sapi/pi3web/pi3web_sapi.c b/sapi/pi3web/pi3web_sapi.c index f11d59338d..3c223752ea 100644 --- a/sapi/pi3web/pi3web_sapi.c +++ b/sapi/pi3web/pi3web_sapi.c @@ -40,9 +40,7 @@ #include "PiAPI.h" #include "Pi3API.h" -#define MAX_STATUS_LENGTH sizeof("xxxx LONGEST STATUS DESCRIPTION") #define PI3WEB_SERVER_VAR_BUF_SIZE 1024 -#define PI3WEB_POST_DATA_BUF 1024 int IWasLoaded=0; @@ -233,7 +231,7 @@ static int sapi_pi3web_read_post(char *buffer, uint count_bytes TSRMLS_DC) DWORD read_from_input=0; DWORD total_read=0; - if (SG(read_post_bytes) < lpCB->cbAvailable) { + if ((DWORD)SG(read_post_bytes) < lpCB->cbAvailable) { read_from_buf = MIN(lpCB->cbAvailable-SG(read_post_bytes), count_bytes); memcpy(buffer, lpCB->lpbData+SG(read_post_bytes), read_from_buf); total_read += read_from_buf; @@ -385,7 +383,7 @@ static sapi_module_struct pi3web_sapi_module = { STANDARD_SAPI_MODULE_PROPERTIES }; -DWORD PHP4_wrapper(LPCONTROL_BLOCK lpCB) +MODULE_API DWORD PHP4_wrapper(LPCONTROL_BLOCK lpCB) { zend_file_handle file_handle; int iRet = PIAPI_COMPLETED; @@ -454,7 +452,7 @@ DWORD PHP4_wrapper(LPCONTROL_BLOCK lpCB) return iRet; } -BOOL PHP4_startup() { +MODULE_API BOOL PHP4_startup() { tsrm_startup(1, 1, 0, NULL); sapi_startup(&pi3web_sapi_module); if (pi3web_sapi_module.startup) { @@ -464,7 +462,7 @@ BOOL PHP4_startup() { return IWasLoaded; }; -BOOL PHP4_shutdown() { +MODULE_API BOOL PHP4_shutdown() { if (pi3web_sapi_module.shutdown) { pi3web_sapi_module.shutdown(&pi3web_sapi_module); }; |