[php-maint] Bug#883209: Reproducer/analysis so far

Eric Desrochers eric.desrochers at canonical.com
Thu Nov 30 17:42:22 UTC 2017


More analysis can be found here :

https://bugs.launchpad.net/bugs/1734967


## REPRODUCER ##

# sudo ln -sf /usr/share/zoneinfo/America/Godthab /etc/localtime

# reboot

# ls -altr /etc/localtime
lrwxrwxrwx 1 root root 35 Nov 29 10:34 /etc/localtime -> /usr/share/zoneinfo/America/Godthab

# date
Wed Nov 29 11:01:30 -03 2017

# php tz.php
America/Sao_Paulo

# tz.php :

<?php
$script_tz = date_default_timezone_get();

echo $script_tz;
?>

--


I have compile the php upstream source code from :https://github.com/php/php-src <https://github.com/php/php-src>

# php --version
PHP 7.3.0-dev (cli) (built: Nov 30 2017 14:52:31) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2017 Zend Technologies

# date
Thu Nov 30 12:23:30 -03 2017

#php php_tz.php
UTC

--

At code inspection I have strong believe this commit is the one changing the behaviour between comment #2 (America/Sao_Paulo) and comment#6 (UTC)

* 8e3260376c Update timezonemap.h, which needs to match

commit 8e3260376c65b762a51eee7c30ab560dadefa1f6
Author: Derick Rethans <github at derickrethans.nl>
Date: Tue Oct 24 14:55:13 2017 +0100

     Update timezonemap.h, which needs to match the bundled TZ db

...
- { "wgst", 1, -7200, "America/Godthab" },
- { "wgt", 0, -10800, "America/Godthab" },
...

$ git tag --contains 8e3260376c
php-7.0.26
php-7.0.26RC1
php-7.1.12
php-7.1.12RC1
php-7.2.0
php-7.2.0RC5
php-7.2.0RC6

It seems like this update has been backported in upstream 7.0, 7.1, ... ~1month ago.

This would possibly need backported to adapt PHP package version where it applies to stay align with new tzdata package.


- Eric

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20171130/121131d0/attachment-0001.html>


More information about the pkg-php-maint mailing list