logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Error reporting in config file: msg#00006

Subject: Re: Error reporting in config file
Michal Čihař a écrit :
Hi all

since PHP 4.3.5 interpreter stops on parse error. With our current code this leads to empty page when user makes such error in configuration. This is pretty confusing, see bugreport [1].

Possible solutions, that come to my mind:

- do not reset error reporting - user will get directly error message

- eval config file content, parse errors inside eval are not thet fatal, so we can hide errors in that time and handle error simmilar way how we did it before

1. https://sourceforge.net/tracker/?func=detail&atid=377408&aid=1223319&group_id=23067


Michal,

I would prefer your second solution eval() of the file contents, which returns FALSE in case of parse error.

Marc


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>