Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53751 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20743 invoked from network); 5 Jul 2011 21:08:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jul 2011 21:08:43 -0000 Authentication-Results: pb1.pair.com header.from=florian@anderiasch.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=florian@anderiasch.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain anderiasch.de from 81.169.138.148 cause and error) X-PHP-List-Original-Sender: florian@anderiasch.de X-Host-Fingerprint: 81.169.138.148 ares.art-core.org Received: from [81.169.138.148] ([81.169.138.148:37090] helo=mail.anderiasch.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/C1-06672-75D731E4 for ; Tue, 05 Jul 2011 17:08:39 -0400 Message-ID: <4E137D3C.7000604@anderiasch.de> Date: Tue, 05 Jul 2011 23:08:12 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.8.1.23) Gecko/20090812 Lightning/0.9 Thunderbird/2.0.0.23 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: aharvey@php.net CC: felipensp@gmail.com, internals@lists.php.net References: In-Reply-To: X-Enigmail-Version: 1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] -W option for CLI "strict mode" From: florian@anderiasch.de (Florian Anderiasch) 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? 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. Greetings, Florian