Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53748 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55162 invoked from network); 5 Jul 2011 16:32:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jul 2011 16:32:36 -0000 Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.214.170 mail-iw0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:61927] helo=mail-iw0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/4C-18802-3AC331E4 for ; Tue, 05 Jul 2011 12:32:35 -0400 Received: by iwn36 with SMTP id 36so6411491iwn.29 for ; Tue, 05 Jul 2011 09:32:32 -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=pkyuNh3SNwOHz83gniTbLsnp/EKbQqgSU5GlC1iKGVY=; b=NIJqZAR4bvF9R8jOsOY72keL/Sdj1WIlt3MtyGxiwQJ0WbyNpIb5aix3QWnJltOnln 4TcttKqGrnzztwIwrQSjf0kY3K+gunL6R4Ew8N6WInkChsVNvuVqeJZTUW1vWu15tgrV 76LcwhUFfrhzyWmDh6ZQWuQh3rLPgkSIFdlWM= Received: by 10.231.148.131 with SMTP id p3mr3838939ibv.157.1309883552316; Tue, 05 Jul 2011 09:32:32 -0700 (PDT) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.231.149.75 with HTTP; Tue, 5 Jul 2011 09:24:22 -0700 (PDT) In-Reply-To: References: Date: Wed, 6 Jul 2011 00:24:22 +0800 X-Google-Sender-Auth: ZJ-nmLYMl5PV3E2PsLy2UpW9jec Message-ID: To: Felipe Pena Cc: PHP internals 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 00:01, Felipe Pena wrote: > Just to inform, the Perl's -W enable all warnings regardless of > whether the script disable warnings. > > The Perl's -w one looks like your -W, but I know we already have used > -w in PHP to output source with stripped comments and whitespaces. That was basically why I chose -W (since it was as close as I could get). > 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. Adam