Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67531 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43726 invoked from network); 26 May 2013 15:18:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 May 2013 15:18:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.47 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.219.47 mail-oa0-f47.google.com Received: from [209.85.219.47] ([209.85.219.47:60749] helo=mail-oa0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/E4-32733-BB722A15 for ; Sun, 26 May 2013 11:18:19 -0400 Received: by mail-oa0-f47.google.com with SMTP id m1so8072835oag.34 for ; Sun, 26 May 2013 08:18:16 -0700 (PDT) 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=zWsR1Gndifa1iNs5/v/ox1D6uYHokyxqjGHD1TGMd10=; b=fdbkL6QYUT7UDuE3GWcC3LXFtZICMrIdbDX/+Cwn6/BFLHq4H28oEQVfXemNXn6B7p sF72cwCnG0hOua+X0LCy81y1I/ddL32cjWGIkMij4D/R/KmT7j67X2Xv7h8Idgdr69eO u4V8xnvi4RljboBu6EdLO1Z1ZfQ/qIIofuWbjU9pteFJh8dXPRM9xL4JNpJuwpePsmzh jasiUI2RX8fFZtcXdrNGQ2NcpCjOzsFB/x1Y95mgMhQJxYBRlDJ68CPr6sda9DeXc9b1 jCtGs0WFXAQCZ76bODj2RrFHA3EcARO0N9TJZlvILKmsdmDtNGQeHWzzRGgaH9DNovAY 3djA== MIME-Version: 1.0 X-Received: by 10.182.74.131 with SMTP id t3mr16416035obv.87.1369581496807; Sun, 26 May 2013 08:18:16 -0700 (PDT) Received: by 10.76.150.193 with HTTP; Sun, 26 May 2013 08:18:16 -0700 (PDT) In-Reply-To: <51A1AF3E.5000704@sugarcrm.com> References: <51A092FC.4010700@wikimedia.org> <51A1AF3E.5000704@sugarcrm.com> Date: Sun, 26 May 2013 09:18:16 -0600 Message-ID: To: Stas Malyshev Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: morrison.levi@gmail.com (Levi Morrison) >> I did not do a very good job explaining what I meant. I meant to say >> that requiring the timezone to be set prevents you from running >> without an ini file without any warnings. This is a big annoyance. > > If you insist on using the tool in a wrong way, you will be annoyed as > the tool would not work in a way you want it to work. The right way is > to set up the ini file. It takes about 2 seconds. Stas, I'm actually using options provided by the tool: php -n Clearly at some point previously the authors of the CLI API realized that running without an ini file had advantages. For instance, I don't want xdebug and other extra extensions loaded if I'm trying to test performance. The only thing that prevents you from easily doing this is the date.timezone warning. You have to specify it with -d: php -n -d date.timezone=UTC Which is really not that nice. Why is running without an ini file even an option if it's punished by default behavior?