]> granicus.if.org Git - php/commitdiff
- return SUCCESS on success
authorPierre Joye <pajoye@php.net>
Fri, 16 Jan 2009 10:26:06 +0000 (10:26 +0000)
committerPierre Joye <pajoye@php.net>
Fri, 16 Jan 2009 10:26:06 +0000 (10:26 +0000)
- check return value

main/main.c

index 2ad7d9e01ab7a0145d7c4cdad73c5071834f2e11..876c47549aa6db305bff0f86efe48978c5c7a7ac 100644 (file)
@@ -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);