Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67504 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68991 invoked from network); 24 May 2013 19:18:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2013 19:18:57 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.45 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.219.45 mail-oa0-f45.google.com Received: from [209.85.219.45] ([209.85.219.45:38593] helo=mail-oa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/D0-64297-12DBF915 for ; Fri, 24 May 2013 15:18:57 -0400 Received: by mail-oa0-f45.google.com with SMTP id j6so6531669oag.4 for ; Fri, 24 May 2013 12:18:54 -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=gXROhktd06oiP1fAgsDl+Ov7mM6ozZgfwYt5TPGwOGA=; b=IVi2pwSH4gfswrkj1eBxaNhVewCmZ85gGlPzeQGfmbCwqFUmmHgsOFKthbrNgZE6Kp bXxqtVw7wqyXCh3pyoEWwDSYVwRzzDIuuyZ5lDtRYavavHoBJLXGMK7Uej101VfFjZ63 cFr5dKmNR8qLGz61fNl3c8K7SbqoXsQUyB3mx7T8UTQfZl7eJ0W/lqWJUF51iSI+kHcn /DPgA/zMjPRsInSG+JC3EBhpv2R53Ct7CHbrNkTXGhPDYeu+IzDNL5pvxllVuPm/cQld fP0rvw3cfpdJrL1VKde2juSpxzy5g/4XDq0sNMI/vfziZP4yFZUUAmiSCXo7Cr7fG7/t B1XA== MIME-Version: 1.0 X-Received: by 10.60.79.198 with SMTP id l6mr12538780oex.47.1369423134621; Fri, 24 May 2013 12:18:54 -0700 (PDT) Received: by 10.76.150.193 with HTTP; Fri, 24 May 2013 12:18:54 -0700 (PDT) In-Reply-To: <519FB6DB.2080702@ralphschindler.com> References: <519E77B4.2050503@sugarcrm.com> <519FB6DB.2080702@ralphschindler.com> Date: Fri, 24 May 2013 13:18:54 -0600 Message-ID: To: Ralph Schindler Cc: Stas Malyshev , Daniel Lowrey , "internals@lists.php.net" 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) > "If none of the above succeed, date_default_timezone_get() will return a > default timezone of UTC." It will still raise a warning, by the way. This is horrible behavior; I recommend the following: date_default_timezone_set(ini_get('date.timezone') ?: 'UTC'); This is basically what date_default_timezone_get does as of PHP 5.4 except there is no warning.