Closed (fixed)
Project:
Devel
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 May 2006 at 08:53 UTC
Updated:
7 Dec 2006 at 06:30 UTC
With devel.module on, all php errors are printed to screen, and not to the logs, despite my settings in admin/settings.
I didn't see any devel setting to change that behaviour.
This happens both for the admin and for an anonymous user.
Is this a feature or a bug?
I was using devel module on my live site to see each page's computing time, but now I have to turn it off when I am not working with it.
Comments
Comment #1
moshe weitzman commentedseems like a bug to me. patches welcome.
Comment #2
moshe weitzman commentedwell, drupal's error handling is skipped so your site will behave with whatever php settings are in place for log messages. i think this should be fixed with a note in the README. perhpas someone will suggest language.
Comment #3
beginner commentedWhich php settings? You mean php.ini?
Comment #4
moshe weitzman commentedyes, the display_errors setting.
Comment #5
johnalbinI wouldn't mind patching this, but I'd like to understand the purpose of calling restore_error_handler() on line 132. I don't see drupal calling set_error_handler() anywhere.
Anyone have some enlightenment?
Comment #6
moshe weitzman commentederror handling is improved in 5.0 and head
Comment #7
(not verified) commented