[Kolab-devel] [issue3440] unhelpful __FILE__ and __LINE__ in PHP log functions

Thomas Arendsen Hein kolab-issues at intevation.de
Thu Feb 26 11:31:00 CET 2009


New submission from Thomas Arendsen Hein <thomas at intevation.de>:

Kolab Server before 2.2.1-rc1 (20090224):

A log file contained: PHP Error ... [on line 146 of
"/kolab/lib/php/Horde/Kolab/Filter/Response.php"]

line 146 of Response.php is the function _log() which contains:
        $file = __FILE__;
        $line = __LINE__;

While __FILE__ could still be in the correct file, the __LINE__ will definitely
be wrong.

There are more places with the same problem while some other calls to log
functions have __FILE__ and __LINE__ in the correct place, i.e. in the call, not
the called function.

----------
assignedto: wrobel
messages: 18777
nosy: bernhard, martin, thomas, till, wilde, wrobel
priority: bug
status: unread
title: unhelpful __FILE__ and __LINE__ in PHP log functions
topic: server
___________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://www.intevation.de/roundup/kolab/issue3440>
___________________________________________________




More information about the devel mailing list