php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #39492 log_errors do not use error_append_string directive
Submitted: 2006-11-13 09:31 UTC Modified: 2011-04-08 18:18 UTC
Votes:16
Avg. Score:4.1 ± 0.9
Reproduced:14 of 14 (100.0%)
Same Version:7 (50.0%)
Same OS:6 (42.9%)
From: frederic dot linot at free dot fr Assigned:
Status: Open Package: PHP options/info functions
PHP Version: 5.* OS: *
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-11-13 09:31 UTC] frederic dot linot at free dot fr
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-13 09:34 UTC] frederic dot linot at free dot fr
Reproduce code was not complete, sorry.. (last line was omitted)
Here is :

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) ;
trigger_error("Show me the error_append_string please !") ;
 [2009-08-17 07:54 UTC] brad dot mcnay at webarena dot com dot au
I am also having this problem. The error_prepend_string shows when the 
error is displayed, but not in the log file. Any word on when this 
feature will be available?
 [2011-04-08 18:18 UTC] jani@php.net
-Package: Feature/Change Request +Package: PHP options/info functions -Operating System: mandriva 2006 +Operating System: * -PHP Version: 5.2.0 +PHP Version: 5.*
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Nov 17 00:01:34 2019 UTC