Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #16267

Re: how to set default timezone as a .config argument?

From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.php
Subject Re: how to set default timezone as a .config argument?
Date 2016-01-14 08:49 +0100
Message-ID <56975301.8000108@arnowelzel.de> (permalink)
References <n76kdi$29c$1@dont-email.me> <5696DB4E.1020802@arnowelzel.de> <n77hmm$ers$1@dont-email.me> <56975237.1070907@arnowelzel.de>

Show all headers | View raw


Arno Welzel schrieb am 2016-01-14 um 08:45:

> crankypuss schrieb am 2016-01-14 um 08:13:
> 
>> Arno Welzel wrote:
>>
>>> crankypuss schrieb am 2016-01-13 um 23:54:
>>>
>>>> When building PHP from source, I want to set the default timezone to
>>>> UTC via some .config option, is there such an option?
>>>
>>> No, there isn't.
>>>
>>> See <http://php.net/manual/en/configure.about.php>.
>>
>> Why should I read again the same text that is provided by ".configure --
>> help"?
> 
> I just mentioned it because I was not sure if you did read it at all or
> you may believe ".configure --help" will not show all possible options.
> 
>>>> What I've found is,
>>>>
>>>> "To assign environment variables (e.g., CC, CFLAGS...), specify them
>>>> as VAR=VALUE."
>>>
>>> Yes - but this has nothing to do with the default timezone PHP uses at
>>> runtime. See
>>>
>> <http://php.net/manual/en/datetime.configuration.php#ini.date.timezone>.
>>>
>>> Even if TZ is set this makes no difference for compilation.
>>
>> One of the reasons I want to build PHP from source is so I'm not 
>> constantly hounded by whatever is deprecated this week.  If there's no 
>> option I can use when building it that will shut off the damned idiotic 
>> warning, I'll just hunt it down and remove it.
> 
> Things do not become deprecated from one week to the next. They become
> deprecated between PHP major version updates - e.g. from PHP 5.6 to 7.
> And these changes don't happen every week and are well documented - and
> not many things become deprecated at all each release:
> 
> <http://php.net/manual/en/migration70.deprecated.php>
> <http://php.net/manual/en/migration56.deprecated.php>

Oh - and BTW: deprecation also means that a feature may get *removed*
completely in the future.

So it is really not helpful to just remove deprecation warnings as you
need to change your code to work with future PHP versions as well.

-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

how to set default timezone as a .config argument? crankypuss <invalid@invalid.invalid> - 2016-01-13 15:54 -0700
  Re: how to set default timezone as a .config argument? Arno Welzel <usenet@arnowelzel.de> - 2016-01-14 00:18 +0100
    Re: how to set default timezone as a .config argument? crankypuss <invalid@invalid.invalid> - 2016-01-14 00:13 -0700
      Re: how to set default timezone as a .config argument? Arno Welzel <usenet@arnowelzel.de> - 2016-01-14 08:45 +0100
        Re: how to set default timezone as a .config argument? Arno Welzel <usenet@arnowelzel.de> - 2016-01-14 08:49 +0100
          Re: how to set default timezone as a .config argument? crankypuss <invalid@invalid.invalid> - 2016-01-14 10:19 -0700
            Re: how to set default timezone as a .config argument? Arno Welzel <usenet@arnowelzel.de> - 2016-01-14 20:09 +0100
            Re: how to set default timezone as a .config argument? Tim Streater <timstreater@greenbee.net> - 2016-01-15 11:22 +0000
              Re: how to set default timezone as a .config argument? crankypuss <invalid@invalid.invalid> - 2016-01-15 08:53 -0700
                Re: how to set default timezone as a .config argument? Tim Streater <timstreater@greenbee.net> - 2016-01-15 17:40 +0000
                PHP in a local environment (was: how to set default timezone as a .config argument?) "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-01-15 18:51 +0100
                Re: PHP in a local environment (was: how to set default timezone as a .config argument?) crankypuss <invalid@invalid.invalid> - 2016-01-15 11:00 -0700
                Re: PHP in a local environment (was: how to set default timezone as a .config argument?) Tim Streater <timstreater@greenbee.net> - 2016-01-15 20:41 +0000
                Re: PHP in a local environment "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-01-17 16:36 +0100
                Re: PHP in a local environment Tim Streater <timstreater@greenbee.net> - 2016-01-17 15:54 +0000
                Re: how to set default timezone as a .config argument? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-01-16 01:21 +0000
                Re: how to set default timezone as a .config argument? Michael Vilain <vilain@NOspamcop.net> - 2016-01-15 18:25 -0800
                Re: how to set default timezone as a .config argument? Tim Streater <timstreater@greenbee.net> - 2016-01-16 08:25 +0000
                Re: how to set default timezone as a .config argument? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-01-16 11:55 +0000
      Re: how to set default timezone as a .config argument? "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-01-14 11:57 +0100
        Re: how to set default timezone as a .config argument? crankypuss <invalid@invalid.invalid> - 2016-01-14 10:29 -0700
          Re: how to set default timezone as a .config argument? "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-01-15 12:14 +0100
            Re: how to set default timezone as a .config argument? crankypuss <invalid@invalid.invalid> - 2016-01-15 08:57 -0700

csiph-web