]> granicus.if.org Git - php/commitdiff
Fix Windows build
authorZeev Suraski <zeev@php.net>
Mon, 5 Feb 2001 21:59:17 +0000 (21:59 +0000)
committerZeev Suraski <zeev@php.net>
Mon, 5 Feb 2001 21:59:17 +0000 (21:59 +0000)
ext/com/VARIANT.c
ext/rpc/com/variant.c
ext/standard/basic_functions.c

index 352c0674ddb6181c0740d1679eeea69e83af0aea..c923b507de3c48cda25ec5eeb6016c305917addf 100644 (file)
@@ -30,6 +30,7 @@
 #include "php_ini.h"
 #include "php_typedef_VARIANT.h"
 #include "conversion.h"
+#include "ext/standard/info.h"
 
 #include <unknwn.h> 
 
@@ -48,6 +49,7 @@ function_entry VARIANT_functions[] = {
        {NULL, NULL, NULL}
 };
 
+
 static PHP_MINFO_FUNCTION(VARIANT)
 {
        php_info_print_table_start();
@@ -55,10 +57,12 @@ static PHP_MINFO_FUNCTION(VARIANT)
        php_info_print_table_end();
 }
 
+
 zend_module_entry VARIANT_module_entry = {
        "variant", VARIANT_functions, PHP_MINIT(VARIANT), PHP_MSHUTDOWN(VARIANT), NULL, NULL, PHP_MINFO(VARIANT), STANDARD_MODULE_PROPERTIES
 };
 
+
 PHP_MINIT_FUNCTION(VARIANT)
 {
        le_variant = zend_register_list_destructors_ex(php_variant_destructor, NULL, "VARIANT", module_number);
index 352c0674ddb6181c0740d1679eeea69e83af0aea..c923b507de3c48cda25ec5eeb6016c305917addf 100644 (file)
@@ -30,6 +30,7 @@
 #include "php_ini.h"
 #include "php_typedef_VARIANT.h"
 #include "conversion.h"
+#include "ext/standard/info.h"
 
 #include <unknwn.h> 
 
@@ -48,6 +49,7 @@ function_entry VARIANT_functions[] = {
        {NULL, NULL, NULL}
 };
 
+
 static PHP_MINFO_FUNCTION(VARIANT)
 {
        php_info_print_table_start();
@@ -55,10 +57,12 @@ static PHP_MINFO_FUNCTION(VARIANT)
        php_info_print_table_end();
 }
 
+
 zend_module_entry VARIANT_module_entry = {
        "variant", VARIANT_functions, PHP_MINIT(VARIANT), PHP_MSHUTDOWN(VARIANT), NULL, NULL, PHP_MINFO(VARIANT), STANDARD_MODULE_PROPERTIES
 };
 
+
 PHP_MINIT_FUNCTION(VARIANT)
 {
        le_variant = zend_register_list_destructors_ex(php_variant_destructor, NULL, "VARIANT", module_number);
index 8cdef464d5147366f49b2b1c7e017f229e6ab1d3..d1e6fa3ff9b252ce3246bc2d99ae53d66ad98541 100644 (file)
@@ -1530,39 +1530,39 @@ PHP_FUNCTION(error_log)
 }
 /* }}} */
 
-PHPAPI int _php_error_log(int opt_err,char *message,char *opt,char *headers){
+PHPAPI int _php_error_log(int opt_err,char *message,char *opt,char *headers)
+{
        FILE *logfile;
        int issock=0, socketd=0;;
 
        switch(opt_err){
-       case 1: /*send an email*/
-               {
+               case 1: /*send an email*/ {
 #if HAVE_SENDMAIL
-               if (!php_mail(opt,"PHP error_log message",message,headers)){
-                       return FAILURE;
-               }
+                               if (!php_mail(opt, "PHP error_log message", message, headers, NULL)){
+                                       return FAILURE;
+                               }
 #else
-               php_error(E_WARNING,"Mail option not available!");
-               return FAILURE;
+                               php_error(E_WARNING,"Mail option not available!");
+                               return FAILURE;
 #endif
-               }
-               break;
-       case 2: /*send to an address */
-               php_error(E_WARNING,"TCP/IP option not available!");
-               return FAILURE;
-               break;
-       case 3: /*save to a file*/
-               logfile=php_fopen_wrapper(opt,"a", (IGNORE_URL|ENFORCE_SAFE_MODE), &issock, &socketd, NULL);
-               if(!logfile) {
-                       php_error(E_WARNING,"error_log: Unable to write to %s",opt);
+                       }
+                       break;
+               case 2: /*send to an address */
+                       php_error(E_WARNING,"TCP/IP option not available!");
                        return FAILURE;
-               }
-               fwrite(message,strlen(message),1,logfile);
-               fclose(logfile);
-               break;
-       default:
-               php_log_err(message);
-               break;
+                       break;
+               case 3: /*save to a file*/
+                       logfile=php_fopen_wrapper(opt,"a", (IGNORE_URL|ENFORCE_SAFE_MODE), &issock, &socketd, NULL);
+                       if(!logfile) {
+                               php_error(E_WARNING,"error_log: Unable to write to %s",opt);
+                               return FAILURE;
+                       }
+                       fwrite(message,strlen(message),1,logfile);
+                       fclose(logfile);
+                       break;
+               default:
+                       php_log_err(message);
+                       break;
        }
        return SUCCESS;
 }