Re: Re: [PHP] Think I found a PHP bug

2011-11-17 Thread Tim Streater
On 16 Nov 2011 at 16:30, Geoff Shang ge...@quitelikely.com wrote: On Wed, 15 Nov 2011, Tim Streater wrote: I find I need to do this: date_default_timezone_set (@date_default_timezone_get ()); in all my scripts since 5.x.x to avoid rude messages. Apart from the fact that I've not seen

Re: [PHP] Think I found a PHP bug

2011-11-16 Thread Geoff Shang
On Tue, 15 Nov 2011, Jim Lucas wrote: Also, I recalled something from the early 5.1.0 version that was related to the introduction of the date_timezone_set() function. So, from there I searched Google for php changelog and found the changelog for php v5. Then I searched that document for

Re: [PHP] Think I found a PHP bug

2011-11-16 Thread Geoff Shang
On Wed, 15 Nov 2011, Tim Streater wrote: I find I need to do this: date_default_timezone_set (@date_default_timezone_get ()); in all my scripts since 5.x.x to avoid rude messages. Apart from the fact that I've not seen the rude messages of which you speak, even though I expected to, this

Re: [PHP] Think I found a PHP bug

2011-11-15 Thread Tim Streater
On 15 Nov 2011 at 22:34, Geoff Shang ge...@quitelikely.com wrote: The bug is that if a server's timezone is set to Europe/London and you don't set an explicit timezone in your script, if it's winter time in the UK, PHP thinks the timezone is UTC instead of Europe/London. I find I need to do

Re: [PHP] Think I found a PHP bug

2011-11-15 Thread Jim Lucas
On 11/15/2011 2:58 PM, Tim Streater wrote: On 15 Nov 2011 at 22:34, Geoff Shang ge...@quitelikely.com wrote: The bug is that if a server's timezone is set to Europe/London and you don't set an explicit timezone in your script, if it's winter time in the UK, PHP thinks the timezone is UTC