note 63756 added to function.error-log

From: Date: Thu, 30 Mar 2006 04:05:21 +0000
Subject: note 63756 added to function.error-log
Groups: php.notes 
Request: Send a blank email to php-notes+get-106990@lists.php.net to get a copy of this message
From the un-named fellow above: "mail() will also fail to set a Subject field based on extra_header data - instead it takes a seperate argument to specify a 'Subject: ' string." True. You can't pass error_log () a subject. It will always be "PHP error_log message". I think the hint here (from the mention of mail() in the docs) is to just use the mail function if we know we will be mailing the error info. I think the switch is there for convenience or perhaps it's deprecated. Either way, it would be just as simple to call mail as error_log() won't handle multiple destinations (ie: it can't both mail and write to the syslog). ---- Server IP: 216.194.113.175 Probable Submitter: 67.188.177.135 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.error-log.php Edit -- http://master.php.net/note/edit/63756 Del: integrated -- http://master.php.net/note/delete/63756/integrated Del: useless -- http://master.php.net/note/delete/63756/useless Del: bad code -- http://master.php.net/note/delete/63756/bad+code Del: spam -- http://master.php.net/note/delete/63756/spam Del: non-english -- http://master.php.net/note/delete/63756/non-english Del: in docs -- http://master.php.net/note/delete/63756/in+docs Del: other reasons-- http://master.php.net/note/delete/63756 Reject -- http://master.php.net/note/reject/63756 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#106990) next »