[Bug 907816] [NEW] libapache2-mod-php5 forgets timezone definition after some time

Arie Skliarouk skliarie at gmail.com
Thu Dec 22 16:02:30 UTC 2011


Public bug reported:

Under libapache2-mod-php5 5.3.2-1ubuntu4.10 (as provided by Lucid LTS
release) php scripts tend to forget timezone after some time.

The timezone is correctly set in the /etc/php5/conf.d/timezone.ini file:
[Date]
date.timezone=UTC

It works properly for several hours after restart of apache. At some
point the libapache2-mod-php5 forgets the definition and starts thinking
that it's timezone is "America/Chicago".

The problem does not occur if php is run using CLI. Also the problem
occurs only on one of my servers. It is not reproducible on other
similar servers.

See attached php script for demonstration of the problem. To see the problem, upload the php script to some server and start polling it as follows:
while [ 1 ]; do wget -O - --quiet http://badmachine.yourcompany.com/print_timezone.php; sleep 10; echo -n "."; done
Once you see "+" in the output, this means the problem exists.

** Affects: apache2 (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  libapache2-mod-php5 forgets timezone definition after some time

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



More information about the Ubuntu-server-bugs mailing list