Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53745 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2375 invoked from network); 5 Jul 2011 15:33:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jul 2011 15:33:24 -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.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:60415] helo=mail-iw0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E6/C0-18802-3CE231E4 for ; Tue, 05 Jul 2011 11:33:24 -0400 Received: by iwn36 with SMTP id 36so6356350iwn.29 for ; Tue, 05 Jul 2011 08:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=T3XC3kY6/cP9OjYJUGcqzCpZbXlXKugL4Tl6kFREOzc=; b=py9IV+KALJEllpB6fr4Aaplb2Ye6NmWypyVh0fNSo3gAmgCodEWbZRZeKFMbW9DxBS 3T7Wc6EHadnWujGiTG++6Rfu8t7IrLxwxHht5S2YDqLll7VTm5c12RyiduKu0A5Pb3sm 12L0eOZ1as54WdJGblLmOTnm5BKJ1gi4lEyPQ= Received: by 10.231.17.200 with SMTP id t8mr6688609iba.190.1309880001123; Tue, 05 Jul 2011 08:33:21 -0700 (PDT) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.231.149.75 with HTTP; Tue, 5 Jul 2011 08:33:01 -0700 (PDT) Date: Tue, 5 Jul 2011 23:33:01 +0800 X-Google-Sender-Auth: cME7GaBUE1vwx8zAw7ctmtK1gHs Message-ID: To: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: [RFC] -W option for CLI "strict mode" From: aharvey@php.net (Adam Harvey) Developers, Romans, countrymen, I'd like to propose the addition of a -W switch to the CLI SAPI which would enable the display of errors and maximum error reporting. This brings us into line with other languages such as Perl, and allows us to evangelise to users that they should run "php -W script.php" as the preferred way of developing and running new, E_STRICT-compliant scripts. The RFC is at https://wiki.php.net/rfc/cli-strict, and comes with a patch, which is accessible at http://www.adamharvey.name/patches/php-cli-strict.patch.txt. If the response isn't overwhelmingly negative and we don't get caught up in discussions for the next few days, I'll look at calling for a vote in a week or so (given it's not a language-level change). Thanks, Adam