[PHP-DEV] CVS update: php31/ext/standard From: rasmus (php-dev <email protected>)
Date: 05/30/98

Date: Saturday May 30, 1998 @ 9:06
Author: rasmus

Update of /repository/php31/ext/standard
In directory asf:/tmp/cvs-serv2860/ext/standard

Modified Files:
        basic_functions.c
Log Message:
Fix error_log() bug in 3.1 tree as well

Index: php31/ext/standard/basic_functions.c
diff -c php31/ext/standard/basic_functions.c:1.4 php31/ext/standard/basic_functions.c:1.5
*** php31/ext/standard/basic_functions.c:1.4 Thu May 28 09:52:00 1998
--- php31/ext/standard/basic_functions.c Sat May 30 09:06:58 1998
***************
*** 247,253 ****
          {"is_object", php3_is_object, first_arg_allow_ref},
  
          {"leak", php3_leak, NULL},
! {"error_log", php3_error_log, NULL},
          {NULL, NULL, NULL}
  };
  
--- 247,253 ----
          {"is_object", php3_is_object, first_arg_allow_ref},
  
          {"leak", php3_leak, NULL},
! {"error_log", php3_error_log, NULL},
          {NULL, NULL, NULL}
  };
  
***************
*** 1360,1366 ****
                  break;
          case 3: /*save to a file*/
                  logfile=php3_fopen_wrapper(opt,"a", (IGNORE_URL|ENFORCE_SAFE_MODE), &issock, &socketd);
! fwrite(message,sizeof(message),1,logfile);
                  fclose(logfile);
                  break;
          default:
--- 1360,1366 ----
                  break;
          case 3: /*save to a file*/
                  logfile=php3_fopen_wrapper(opt,"a", (IGNORE_URL|ENFORCE_SAFE_MODE), &issock, &socketd);
! fwrite(message,strlen(message),1,logfile);
                  fclose(logfile);
                  break;
          default: