[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2014-05-31 Thread avdd
Still seeing the same behaviour in 14.04:

$ cat /etc/timezone 
Australia/Sydney
$ grep date.timezone /etc/php5/cli/php.ini
; http://php.net/date.timezone
;date.timezone =
$ grep -r date.timezone /etc/php5/cli
/etc/php5/cli/php.ini:; http://php.net/date.timezone
/etc/php5/cli/php.ini:;date.timezone =
$ php -r 'print date_default_timezone_get();'
Antarctica/Macquarie

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2014-04-22 Thread Robie Basak
  Antarctica/Macquarie$

This rings a bell, but I think it's a different (perhaps related) bug
that I can't find right now. This bug is when the system timezone
doesn't get picked up by default at all.

 I don't understand why PHP is so special it needs to be told
indivdually about my time zone, for each installed interpreter.

The upstream PHP project appear to prefer it this way, and aren't
interested in changing this. So multiple distributions (Debian/Ubuntu,
Fedora/RHEL/CentOS, others?) have to patch in what they think is better
behaviour, and this regresses sometimes. See https://bugs.debian.org
/cgi-bin/bugreport.cgi?bug=618462#10 for some further background.

** Bug watch added: Debian Bug tracker #618462
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=618462

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2014-04-14 Thread avdd
12.04 precise does seem affected by this or something like it:

$ cat /etc/timezone 
Australia/Sydney
$ grep date.timezone /etc/php5/cli/php.ini 
; http://php.net/date.timezone
;date.timezone =
$ php -r 'print date_default_timezone_get();'
Antarctica/Macquarie$ 


I don't understand why PHP is so special it needs to be told indivdually about 
my time zone, for each installed interpreter.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2012-11-26 Thread Launchpad Bug Tracker
This bug was fixed in the package php5 - 5.4.6-1ubuntu1.1

---
php5 (5.4.6-1ubuntu1.1) quantal-proposed; urgency=low

  * Re-add logic to guess default timezone from system to fix default timezone
regression (LP: #1069529). Cherry-picked from Debian 5.4.4-6 (also in
Debian 5.4.6-2).
 -- Robie Basak robie.ba...@canonical.com   Wed, 24 Oct 2012 10:04:51 +

** Changed in: php5 (Ubuntu Quantal)
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2012-11-15 Thread Robie Basak
Ran test case on quantal. Failed without -proposed, succeeded with
-proposed.

** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2012-11-14 Thread Clint Byrum
Hello Dominik, or anyone else affected,

Accepted php5 into quantal-proposed. The package will build now and be
available at http://launchpad.net/ubuntu/+source/php5/5.4.6-1ubuntu1.1
in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from
verification-needed to verification-done.  If it does not, change the
tag to verification-failed.  In either case, details of your testing
will help us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: php5 (Ubuntu Quantal)
   Status: Triaged = Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2012-11-14 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/quantal-proposed/php5

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2012-11-08 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/php5

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2012-11-07 Thread Marc Deslauriers
** Also affects: php5 (Ubuntu Raring)
   Importance: Medium
   Status: Triaged

** Changed in: php5 (Ubuntu Quantal)
   Status: New = Triaged

** Changed in: php5 (Ubuntu Quantal)
   Importance: Undecided = Medium

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2012-11-07 Thread Marc Deslauriers
ACK on the debdiff. I've uploaded a slightly modified version of it to
raring, and to quantal-proposed for processing by the SRU team. Thanks!

** Changed in: php5 (Ubuntu Raring)
   Status: Triaged = Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2012-11-07 Thread Launchpad Bug Tracker
This bug was fixed in the package php5 - 5.4.6-1ubuntu2

---
php5 (5.4.6-1ubuntu2) raring; urgency=low

  [ Robie Basak ]
  * Re-add logic to guess default timezone from system to fix default timezone
regression (LP: #1069529). Cherry-picked from Debian 5.4.4-6 (also in
Debian 5.4.6-2).

  [ Marc Deslauriers ]
  * debian/patches/libxml290.patch: Fix FTBFS with libxml 2.9.0.
 -- Marc Deslauriers marc.deslauri...@ubuntu.com   Wed, 07 Nov 2012 11:54:55 
-0500

** Changed in: php5 (Ubuntu Raring)
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2012-11-03 Thread Benjamin Drung
** Also affects: php5 (Ubuntu Quantal)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2012-10-24 Thread Bug Watch Updater
** Changed in: php5 (Debian)
   Status: Unknown = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2012-10-24 Thread Robie Basak
I've picked this patch up from the fix in Debian, and verified that this
fixes Quantal in a test build. I need to prepare an SRU for Quantal from
this next, and I think we'll need to have merged Debian experimental
before the SRU can go in.

** Patch added: fix-system-timezone.patch
   
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+attachment/3411480/+files/fix-system-timezone.patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2012-10-24 Thread Ubuntu Foundation's Bug Bot
The attachment fix-system-timezone.patch of this bug report has been
identified as being a patch.  The ubuntu-reviewers team has been
subscribed to the bug report so that they can review the patch.  In the
event that this is in fact not a patch you can resolve this situation by
removing the tag 'patch' from the bug report and editing the attachment
so that it is not flagged as a patch.  Additionally, if you are member
of the ubuntu-reviewers team please also unsubscribe the team from this
bug report.

[This is an automated message performed by a Launchpad user owned by
Brian Murray.  Please contact him regarding any issues with the action
taken in this bug report.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2012-10-24 Thread Robie Basak
SRU debdiff attached. AIUI, this can be copied forward to raring.

** Description changed:

- An upstream change in PHP requires php.ini to have the timezone set in
- there, instead of PHP using the system timezone as one might expect.
+ [Impact]
  
- This is new in PHP 5.4.
+ A regression of timezone handling between Precise and Quantal means that
+ PHP scripts that depend on the system timezone now use UTC instead. This
+ breaks arbitrary PHP scripts - eg. cactus stops working as expected.
  
  Not affected: 5.3.10-1ubuntu3.4 (Precise)
  Affected: 5.4.6-1ubuntu1 (Quantal)
  Not affected: 5.4.4-7 (sid)
  
  Workaround: edit /etc/php5/*/php.ini, uncomment the date.timezone line
  and set it to what you need.
  
- Test Case:
+ [Test Case]
  
- Run:
- $ php -r 'echo date_default_timezone_get().\n;'
+ 1. Set a timezone other than UTC using dpkg reconfigure tzdata.
+ 2. $ php -r 'echo date_default_timezone_get().\n;'
  
- Expected results: timezone (eg. Europe/London)
+ Expected results: system timezone (eg. Europe/London)
  
  Actual results:
  PHP Warning:  date_default_timezone_get(): 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 the timezone 'UTC' for now, but please set 
date.timezone to select your timezone. in Command line code on line 1
  UTC
  
  (where in this case UTC is the system timezone).
+ 
+ [Regression Potential]
+ 
+ This patch was previously used by Debian and inadvertently dropped,
+ causing this regression. It has already been re-added in Debian. The
+ change only touches the guess_timezone function and adds an additional
+ fallback. If there is an inadvertent regression, it is likely to be in
+ timezone selection code.

** Patch added: fix-system-timezone.debdiff
   
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+attachment/3411708/+files/fix-system-timezone.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2012-10-24 Thread Robie Basak
I have verified that the test case fails in a quantal chroot running
5.4.6-1ubuntu1, and then passes after an upgrade to my test build of
5.4.6-1ubuntu2.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2012-10-24 Thread Robie Basak
** Attachment added: Build log
   
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+attachment/3411713/+files/php5_5.4.6-1ubuntu2_amd64.build

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 1069529] Re: Regression in system fallback for date_default_timezone_get()

2012-10-24 Thread Paul Gevers
On 24-10-12 15:41, Robie Basak wrote:
 I have verified that the test case fails in a quantal chroot running
 5.4.6-1ubuntu1, and then passes after an upgrade to my test build of
 5.4.6-1ubuntu2.
 

Just a stupid question. Reading the changelog of 5.4.6-2 in Debian [1],
it seems a lot of bugs were fixed in that version that were fixed in
5.4.4-6 of php5 in unstable. Have you verified that we don't ALSO really
want the other merges in 5.4.6-2?

Paul

[1]
http://packages.debian.org/changelogs/pool/main/p/php5/current/changelog

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1069529

Title:
  Regression in system fallback for date_default_timezone_get()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1069529/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs