From b0dcfe527e652b998a96be29dd30bb027507269d Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Fri, 16 Jan 2009 10:26:06 +0000 Subject: [PATCH] - return SUCCESS on success - check return value --- main/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main/main.c b/main/main.c index 2ad7d9e01a..876c47549a 100644 --- a/main/main.c +++ b/main/main.c @@ -123,6 +123,7 @@ static php_win32_disable_functions() { } } } + return SUCCESS; } #endif @@ -2090,7 +2091,10 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod #ifdef PHP_WIN32 /* Disable incompatible functions for the running platform */ - php_win32_disable_functions(); + if (php_win32_disable_functions() == FAILURE) { + php_printf("Unable to disable unsupported functions\n"); + return FAILURE; + } #endif zend_post_startup(TSRMLS_C); -- 2.50.1