Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72266 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7263 invoked from network); 5 Feb 2014 11:48:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2014 11:48:33 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.179 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.179 mail-qc0-f179.google.com Received: from [209.85.216.179] ([209.85.216.179:56092] helo=mail-qc0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/F4-09402-01522F25 for ; Wed, 05 Feb 2014 06:48:32 -0500 Received: by mail-qc0-f179.google.com with SMTP id e16so383142qcx.10 for ; Wed, 05 Feb 2014 03:48:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6tUq42IGm/BpmG++mjzs37O45BPTxLcI6BHzs1fb7bg=; b=RCG2x9ZVB48ccaQSomhuzht2UbLBZo75oVMhZaL0OdBjMqTmH42ExSLlnrQKro2c5z vXmiTOlrvAtgf+us3uepyNxpLsCmsWdCmPEgyEmV8QbLl7jB5VKk9G+MUqm7ZAibPliW X+w+xkSivNYsPS28/v06bkIJkCYwOnabuNciNHZ19Q5S3uuwugvMJhM7j3SMiZMFmzBv 5ZnVE09xZZLmehATEt96N3OyJRrqdy8s3HH3In8C4p1p1SKkYJ+wATPE8AVr3di6ecII NvLgZFT0HvXM0C6m922+62l7LffIZAWPw5J0rVo3SfOT/wK72gT/GU06Efx9ZpxUqv37 HXCQ== MIME-Version: 1.0 X-Received: by 10.224.63.131 with SMTP id b3mr1527579qai.63.1391600908872; Wed, 05 Feb 2014 03:48:28 -0800 (PST) Received: by 10.140.18.129 with HTTP; Wed, 5 Feb 2014 03:48:28 -0800 (PST) In-Reply-To: References: <52EF4BF8.60005@sugarcrm.com> <52F14C66.3030806@gmail.com> <52F15B62.1070006@gmail.com> <52F20C7C.3040803@lsces.co.uk> <52F2165E.6040104@lsces.co.uk> Date: Wed, 5 Feb 2014 12:48:28 +0100 Message-ID: To: Yasuo Ohgaki Cc: Lester Caine , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Declare minimum PHP version required? From: pierre.php@gmail.com (Pierre Joye) hi, On Wed, Feb 5, 2014 at 12:01 PM, Yasuo Ohgaki wrote: > Hi Lester, > > On Wed, Feb 5, 2014 at 7:45 PM, Lester Caine wrote: > >> If you look at the bulk of PHP users, they are using PHP via a hosting >> service, who set up the 'production server' for them. When they install an >> 'application', it's install section takes care of configuration. Then the >> ISP changes PHP version and they get a white screen ... help ... >> >> At this point what PHP needs to supply as a minimum is just a 'php has >> crashed please check log', but ideally we should be able to direct these >> 'simple' users back to their installation section if that can handle the >> problem. 95% of users would probably not understand what the difference >> between a production and develop server is? Telling them they have no place >> using PHP is not acceptable? >> > > I think your comment is valuable. > Under production environment, web apps should not display any internal data > including PHP errors. > However, it may be a good idea to have option for administrators to display > some messages. > Perhaps, INI like > > fatal_error_message = "Program had fatal error. Please consult XXXXXX" > > might be useful for ISPs admins and users. ISPs admins (or any admins) can read logs, and will read logs. They do check customers error logs to prevent flaws, issues, excessive resource usages, etc. Panels and other user friendly systems provide log viewers with alerts. But the key point remains the same, no error should be displayed in production (whatever hosting is used), this is well documented since years. I have some hard time to understand why we keep having to explain why. If the documentation needs improvements, then let try to fix it. But adding yet another option to finally do something that we try to prevent since years does not sound very appealing to me. Cheers, -- Pierre @pierrejoye | http://www.libgd.org