Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72259 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89285 invoked from network); 5 Feb 2014 10:24:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2014 10:24:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.50 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.50 mail-qa0-f50.google.com Received: from [209.85.216.50] ([209.85.216.50:50739] helo=mail-qa0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 44/82-09402-25112F25 for ; Wed, 05 Feb 2014 05:24:18 -0500 Received: by mail-qa0-f50.google.com with SMTP id cm18so222291qab.37 for ; Wed, 05 Feb 2014 02:24:16 -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=vfsCFeq9e8WZviTyP8GBCNFofplSzAZp6nO5+yjEGFk=; b=zFvvrPfLAS8PKkg+2hln2ApTdLd0b5LyQfAsf6Utzcy94930b+QzCtUKaskeqXPuLX tHJapgT/mryimLDVwsm0GAVX9liNhGEyVhgVniNijJm0DVz04PmOWCElm3kY1uf34HZD 6vqUCYUv7DJTyZH/BoTtGdjlm9siA1rUIuAQ6NjUkyIS9aSl42nYnKJY5/JgxiLciChR MZ2OEzsJrEaAnhgEF/pzx7NML8e1JKtPgj9p6JbBqFm6Go+Y8pqEXu++bdfW/xNqD2mH 7pfl4HeUqYkV1Ebj3gmwvAF9+ATfdkRa3Crz8Ee/IYVhn14ImKuWQC++850uFPW2uz5n 66SA== MIME-Version: 1.0 X-Received: by 10.224.98.212 with SMTP id r20mr1154585qan.0.1391595855935; Wed, 05 Feb 2014 02:24:15 -0800 (PST) Received: by 10.140.18.129 with HTTP; Wed, 5 Feb 2014 02:24:15 -0800 (PST) In-Reply-To: <52F20C7C.3040803@lsces.co.uk> References: <52EF4BF8.60005@sugarcrm.com> <52F14C66.3030806@gmail.com> <52F15B62.1070006@gmail.com> <52F20C7C.3040803@lsces.co.uk> Date: Wed, 5 Feb 2014 11:24:15 +0100 Message-ID: To: Lester Caine Cc: 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) On Wed, Feb 5, 2014 at 11:03 AM, Lester Caine wrote: > Yasuo Ohgaki wrote: >> >> Yes. New assert() is as efficient as declare(). >> I cannot wait to use new assert()! > > > Yasuo > Please can you explain why you think this is so essential? The only place I > can think that I would use this I ALSO need to advise the users that there > is a problem. Adding 'assert' which apparently only has use while debugging > just seems wrong. Alright I add vd() and similar myself when debugging code > rather than using a 'debugger', but if I need to test something only at > debug time then I'll just add code and remove it when I have sorted the > problem. If it is a problem which will stop the code running, then it needs > a proper response in the workflow anyway. > > ADOdb and smarty both have switches to enable debugging which can be > switched on as required at runtime and I can't see any reason they would > switch to using assert instead? Let me rephrase that in another way. It is no rocket science to correctly setup a production server. Disable display errors, eanble log, create error pages (404, etc.). Anyone not being able to understand or able to actually do it has nothing to do anywhere closed to a production server. Cheers, -- Pierre @pierrejoye | http://www.libgd.org