Re: error_handler
| From: | Christian Schneider | Date: | Fri, 19 Dec 2003 17:22:40 +0000 |
| Subject: | Re: error_handler | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6614@lists.php.net to get a copy of this message | ||
Lenar Lõhmus wrote:
by their creators waiting to be downloaded. That script/project could use custom error handlers and could somehow depend on PHP4's behaviour. You never know.My guess of the chance that this happens? I'd say about 1:2^42. This script working without changes with PHP5? About 1:2^64738. And a web hosting company with customers like that upgrading to PHP5 anytime soon? About 1:2^64.
Hmm I don't find adding an parameter to error_reporting() call making my life much harder. I didn't need it before, remember? I can go and write version_compare() in my error handler too to remain BC after using this new parameter.So trade a certain evil (version checking is code bloat and maintenance hell) for something highly hypothetical? Your call but I think it's a poor choice. *But* let's not forget to come to a conclusion at some point. I've done my advocacy now, could someone with the authority now decide, please? :-) - Chris