PHP 4 NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? Jul 2003, Version 4.3.3
+- Prevent yaz from logging unless yaz.log_file is set (Adam Dickmeiss)
- Added long options into CLI & CGI (e.g. --version). (Marcus)
- Added new command line parameters -B, -F, -R and -E which allow to process
stdin line by line (See 'php -h' or 'man php' for more). (Marcus)
PHP_MINIT_FUNCTION(yaz)
{
int i;
+ const char *fname;
nmem_init();
#ifdef ZTS
yaz_mutex = tsrm_mutex_alloc();
REGISTER_INI_ENTRIES();
- if (YAZSG(log_file))
+ fname = YAZSG(log_file);
+ if (fname && *fname)
{
- yaz_log_init_file(YAZSG(log_file));
+ yaz_log_init_file(fname);
yaz_log_init_level(LOG_ALL);
}
else