Re: Re: PHP causing Script: '/usr/www/...' in httpd-error.log?
| From: | robert arnesson | Date: | Mon, 24 Nov 2008 16:57:12 +0000 |
| Subject: | Re: Re: PHP causing Script: '/usr/www/...' in httpd-error.log? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-283767@lists.php.net to get a copy of this message | ||
There are no calls to error_log in the files, however, I took care of some
notices in the code (with error_reporting to E_ALL - there where only
notices - no errors or warnings) and suddenly the number of entries in the
error log dropped. Getting rid of all notices will probably solve the
problem. But i still dont get how this can be happening. error_reporting is
set to 0 in php.ini, and no changes or calls to error functions are made in
the code. It's also kind of strange that other files in the same framework,
files that uses the same functions, includes the same files, etc, dont
generate these kind of errors in the log at all.
/Robert
On Mon, Nov 24, 2008 at 4:08 PM, Jochem Maas <jochem@iamjochem.com> wrote:
> robert arnesson schreef:
> > A. There is no more to the log
> > B. There are no calls to error_log()
> >
> > PHP is installed as CGI, I will check the ScriptLog dir (good tip!).
> >
> > I forgot to mention that this occurres on a few php-files only.. the rest
> is
> > working fine. And there are no major differences between the files that
> show
> > up in the log compared to the ones that don't. I have checked the files
> them
> > selfs over and over.. they are working as expected.
>
> check the contents of those few scripts for a line that looks something
> like:
>
> error_log(__FILE__);
>
> ie the log messages are done on purpose for tracing purposes... mostly
> likely
> just some debug cruft left in the code by mistake.
>
> hth
>
> >
> > /Robert
> >
> > On Sun, Nov 23, 2008 at 7:07 PM, Nathan Rixham <nrixham@gmail.com>
> wrote:
> >
> >> robert arnesson wrote:
> >>
> >>> What is causing these errors?
> >>>
> >> further thought.. is PHP installed as CGI or SAPI? if CGI have you
> checked
> >> the apache settings to see if the ScriptLog directive is on any where?
> >>
> >>
> >
>
>
--
Vänliga hälsningar/Best regards
Robert Arnesson
Ventio AB
E-mail: robert@ventio.se
Phone: +46(0)736 41 61 14
Web: www.ventio.se
Address: Holländargatan 27
SE-113 59 Stockholm
Sweden