Re: error_append_string and error_log
| From: | Javier Ruiz | Date: | Wed, 15 Jul 2009 13:20:23 +0000 |
| Subject: | Re: error_append_string and error_log | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-295413@lists.php.net to get a copy of this message | ||
Hi, thanks for your reply.
The thing is, I need to set it in runtime (ini_set) since I want to append
the URI that generated the error, so I'll need to use some $_SERVER
variables.
Regards
JaviRuiz.
On Wed, Jul 15, 2009 at 2:25 PM, Ashley Sheridan
<ash@ashleysheridan.co.uk>wrote:
> On Wednesday 15 July 2009 12:44:21 Javier Ruiz wrote:
> > Hi!
> >
> > I'm trying to append some extra info to my php errors. It works well when
> > I'm displaying errors on screen, but it doesn't work to log the extra
> info
> > into an error file (log_errors and error_log). I mean, if I use this:
> >
> > <?php
> > ini_set('display_errors', 1);
> > ini_set('log_errors', 1);
> > ini_set('error_log', './ERRORS');
> > ini_set('error_append_string', " -- SomeStuff!");
> > require 'test.php'; // this file contains syntax errors...
> >
> >
> > When I issue this using a web browser, I get a syntax error shown in the
> > browser and it contains the "SomeStuff" text, but in the ERRORS file I
> just
> > get the php error without the "SomeStuff" text...
> >
> > Is there any way to get this working?
> >
> > Thanks!
> > Regards,
> >
> > JaviRuiz.
>
> Try setting this in your php.ini rather than PHP and see if that does the
> trick
>
> --
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>