|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 11:00:01 2025 UTC |
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 !") ;