From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.2.3 PHP Bug Type: Unknown/Other Function Bug description: No newline operation in error_log()
I have been trying to use newline operators and tabs in the error_log() function but for some reason they are treated as literals and I can not get newlines written into the logfile nor tabs. as you can see bellow I have tried it with an array element and a string also with \r\n or \n or \\n or \n\n.. no joy I just get everything appended to the same line.. shame //example line: error_log($error[0|1][n],3,$errorLog); // timestamp for the error entry $dt = date("Y-m-d H:i:s"); /////////////// $error[0][0] = '\t' .$dt. 'Failure: capture HTTP page request variable\n';//mark [FATAL] //$error[1][0] = '\t' .$dt. 'Success: capture HTTP page request variable\n'; $errorString = '\t' .$dt. '\tSuccess: capture HTTP page request variable\r\n'; $error[0][1] = '\t' .$dt. 'Failure: capture HTTP method request variable\n';//mark [WARNING] //script excerpt if ($request = getenv('REQUEST_URI')) { error_log($errorString,3,$errorLog); }//end if($request.. else { error_log($error[0][0],3,$errorLog); }//end else -- Edit bug report at http://bugs.php.net/?id=20499&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20499&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20499&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20499&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20499&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20499&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20499&r=support Expected behavior: http://bugs.php.net/fix.php?id=20499&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20499&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20499&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20499&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20499&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20499&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20499&r=isapi