Jump to content

PHP 5 disable stack trace


dhinge

Recommended Posts

Just installed PHP 5 and Apache 2.2, and now there's this stupid stack trace with info that I rarely need:

 

[Mon Mar 26 07:02:31 2007] [error] [client ***] PHP Notice:  A session had already been started - ignoring session_start() in /***.php on line 7, referer: http://***.php

[Mon Mar 26 07:02:31 2007] [error] [client ***] PHP Stack trace:, referer: http://***.php

[Mon Mar 26 07:02:31 2007] [error] [client ***] PHP  1. {main}() /***.php:0, referer: http://***.php

[Mon Mar 26 07:02:31 2007] [error] [client ***] PHP  2. session_start() /***.php:7, referer: http://***.php

 

All I really need is first line; the rest of it is usually not necessary, and just eats up all the space on my putty screen. So far I nothing I'm doing in either httpd.conf or php.ini is fixing it. Does anybody know how to disable the stack trace?

Link to comment
Share on other sites

It was set to E_ALL, but I set it to

 

error_reporting = E_ERROR & E_WARNING & E_PARSE & E_NOTICE

 

and now it doesn't give any errors. So I just set it to E_NOTICE, and it gives the notices, but with the stack trace again. The php.ini file doesn't say anything about limiting the stack trace, and doesn't appear to have an option for this in error_reporting. If anybody knows how to disable this, please let me know.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.