?? ??? 2010, PHP 5.2.14
- Updated timezone database to version 2010.3. (Derick)
+- Fixed bug #51237 (milter SAPI crash on startup). (igmar at palsenberg dot com)
- Fixed bug #51213 (pdo_mssql is trimming value of the money column). (Ilia,
alexr at oplot dot com)
- Fixed bug #51192 (FILTER_VALIDATE_URL will invalidate a hostname that
extern int ap_php_optind;
static int flag_debug=0;
-static char *filename;
+static char *filename = NULL;
/* per thread */
ZEND_BEGIN_MODULE_GLOBALS(milter)
/* disable headers */
SG(headers_sent) = 1;
SG(request_info).no_headers = 1;
+
+ if (filename == NULL) {
+ php_printf("No input file specified");
+ return SMFIS_TEMPFAIL;
+ }
if (!(file_handle.handle.fp = VCWD_FOPEN(filename, "rb"))) {
php_printf("Could not open input file: %s\n", filename);
SG(headers_sent) = 1;
SG(request_info).no_headers = 1;
+ if (filename == NULL) {
+ php_printf("No input file specified");
+ return SMFIS_TEMPFAIL;
+ }
+
if (!(file_handle.handle.fp = VCWD_FOPEN(filename, "rb"))) {
php_printf("Could not open input file: %s\n", filename);
return SMFIS_TEMPFAIL;