#include "php_ini.h"
#include "php_typedef_VARIANT.h"
#include "conversion.h"
+#include "ext/standard/info.h"
#include <unknwn.h>
{NULL, NULL, NULL}
};
+
static PHP_MINFO_FUNCTION(VARIANT)
{
php_info_print_table_start();
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);
#include "php_ini.h"
#include "php_typedef_VARIANT.h"
#include "conversion.h"
+#include "ext/standard/info.h"
#include <unknwn.h>
{NULL, NULL, NULL}
};
+
static PHP_MINFO_FUNCTION(VARIANT)
{
php_info_print_table_start();
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);
}
/* }}} */
-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;
}