Re: [INTERNALS-WIN] Re: NSAPI Snapshot Builds for VC9?
[email protected] (Ferenc Kovacs)
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Mar 20, 2009 at 4:38 PM, Pierre Joye <[email protected]> wrote: > On Fri, Mar 20, 2009 at 4:36 PM, Ferenc Kovacs <[email protected]> wrote: > > > > > > On Fri, Mar 20, 2009 at 4:26 PM, Pierre Joye <[email protected]> > wrote: > >> > >> On Fri, Mar 20, 2009 at 4:03 PM, Uwe Schindler <[email protected]> > wrote: > >> > Works perfectly (tested with some PHP apps that were installed on my > >> > computer through my parallel xampp installation), here also the > phpinfo > >> > of > >> > >> good to hear, todos--; :) > >> > >> > > >> > Only one thing: > >> > > >> > Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the > >> > system's timezone settings. You are *required* to use the > date.timezone > >> > setting or the date_default_timezone_set() function. In case you used > >> > any of > >> > those methods and you are still getting this warning, you most likely > >> > misspelled the timezone identifier. We selected 'Europe/Paris' for > >> > '1.0/no > >> > DST' instead in > C:\Programme\Sun\WebServer7\https-VEGA\docs\phpinfo.php > >> > on > >> > line 2 > >> > > >> > > >> > > >> > But this is a German Windows and is Europe/Paris…! > >> > >> You have to set it in your php.ini, it is a must. > > > > or use the date_default_timezone_set() as its stated in the warning. > > To have the default TZ set in php.ini is a must. The date functions > can be called before the script even begins. > > -- > Pierre > > http://blog.thepimp.net | http://www.libgd.org > then the warning message is misleading.I was playing with 5.3 on the previous weekend, and after the above mentioned error I modified my script to use date_default_timezone_set() in my bootstrap. If this can cause problems, then the warming message should be changed to reflect the actual situation. Tyrael