Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53753 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82433 invoked from network); 6 Jul 2011 05:02:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jul 2011 05:02:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:36089] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E4/00-16504-87CE31E4 for ; Wed, 06 Jul 2011 01:02:49 -0400 Received: by iym1 with SMTP id 1so6936940iym.29 for ; Tue, 05 Jul 2011 22:02:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=zs+CfF2rVOzcpR3thcOftGkPlNwG/Dg/iUugVYrybQc=; b=laKFQILHXRSJzUP7YAVRY09dewAF0UHV5h7jMGwQx0d+u5fYVuxP8W5+lg6U+/jpfQ 2GN09iWFDaIbd/frMNeLUpCv3SoZQ8DZpgBYFAo+guvw2FiIJ4k3yDHQqExEIhENfDUg mI8hlZgOqEJ3/gs2emxy+1IBY1Aof8A0Qy5ho= Received: by 10.231.113.132 with SMTP id a4mr7577359ibq.72.1309928566065; Tue, 05 Jul 2011 22:02:46 -0700 (PDT) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.231.149.75 with HTTP; Tue, 5 Jul 2011 22:02:26 -0700 (PDT) In-Reply-To: <4E137D3C.7000604@anderiasch.de> References: <4E137D3C.7000604@anderiasch.de> Date: Wed, 6 Jul 2011 13:02:26 +0800 X-Google-Sender-Auth: FPDo1ITqa2Zx5bL5gl7CJY-UYVE Message-ID: To: Florian Anderiasch Cc: felipensp@gmail.com, internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] -W option for CLI "strict mode" From: aharvey@php.net (Adam Harvey) On 6 July 2011 05:08, Florian Anderiasch wrote: > On 05.07.2011 18:24, Adam Harvey wrote: >>> However I guess it's more useful to have something like Perl does with -W. >> >> It does really combine -w and -W from Perl, now I think about it. > > What would be the options of mimicking -W as closely as possible? > > There was this extension (iirc named scream and by Johannes) that > unsilenced @calls. Would this fit into as well? The idea of integrating scream was raised on IRC as well. But... > I suppose some kind of monkeypatching > error_reporting/ini_set/whatIforgot to ignore all settings in the > script(s) would be anything from bad style to downright impossible, but > maybe someone has a brilliant idea to enhance this. It's probably possible, but in general, I'm not sure we should be tinkering with explicitly set settings and suppression within scripts. Setting good defaults for development is one thing, but the script writer should probably have the final say. Adam