#39492 [NEW]: log_errors do not use error_append_string directive

From: Date: Mon, 13 Nov 2006 09:31:56 +0000
Subject: #39492 [NEW]: log_errors do not use error_append_string directive
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-104885@lists.php.net to get a copy of this message
From:             frederic dot linot at free dot fr
Operating system: mandriva 2006
PHP version:      5.2.0
PHP Bug Type:     Output Control
Bug description:  log_errors do not use error_append_string directive

Description:
------------
error_append_string directive not used when error is logged in a file.
Just used when error is displayed on screen.

Reproduce code:
---------------
error_reporting(E_ALL) ; 
ini_set('error_log', 'errors.txt') ;
ini_set('html_errors', false) ;
ini_set('error_append_string', " -- ".$_SERVER['REQUEST_URI']) ;
ini_set('log_errors', true) ;
ini_set('display_errors', true) ;

Expected result:
----------------
in errors.txt file :
Notice: Show me the error_append_string please ! in
/home/fred/www/EasyZik-2006-10-29/test.php on line 9 -- /test.php

on screen :
Notice: Show me the error_append_string please ! in
/home/fred/www/EasyZik-2006-10-29/test.php on line 9 -- /test.php

Actual result:
--------------
in errors.txt file :
Notice: Show me the error_append_string please ! in
/home/fred/www/EasyZik-2006-10-29/test.php on line 9

on screen :
Notice: Show me the error_append_string please ! in
/home/fred/www/EasyZik-2006-10-29/test.php on line 9 -- /test.php

-- 
Edit bug report at http://bugs.php.net/?id=39492&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39492&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39492&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39492&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39492&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=39492&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39492&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39492&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39492&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39492&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39492&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=39492&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=39492&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39492&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39492&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39492&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39492&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39492&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39492&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39492&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39492&r=mysqlcfg


Thread (7 messages)

« previous php.bugs (#104885) next »