Topic: pecl timezonedb
Hi Remi,
Is there any chance of RPM packaging the pecl timezonedb file?
GLPI's timezone plugin needs the version to be up-to-date
Thanks
You are not logged in. Please login or register.
Please STOP WAR NOW! | |
![]() |
For proper configuration and installation, please use the Configuration Wizard |
Versions: PHP ≤ 7.4 is EOL - PHP 8.0.30 - PHP 8.1.24 - PHP 8.2.11 - PHP 8.3.0RC3
More information: #remirepo IRC channel - Twitter: @RemiRepository - Discord server
Remi's RPM repository - Forum → User support → pecl timezonedb
Hi Remi,
Is there any chance of RPM packaging the pecl timezonedb file?
GLPI's timezone plugin needs the version to be up-to-date
Thanks
This extension have no sense with RPM as PHP doesn't use its internal timezone, but use the system one (tzdata).
I have wrote an email to the glpi plugin author to fix its Wiki.
See https://forge.indepnet.net/projects/tim … quirements
Sorry about hijacking 7 year old thread, but I also would like to request timezonedb pecl module included in the repo.
Here are the reasons:
- If PHP uses System timezone database, it will cause about 600 file operations every time tz data is initialized (ie. in almost every run)
easy to verify with strace:
strace -s 100 -r php -n -r"print strtotime('2022-01-01');" 2>&1 | grep stat
if internal tzdb is used, it will open only a couple of files. Makes big difference in some cloud environments with a slower IO
- Litespeed Web Server team, for example, recommends using it:
https://www.litespeedtech.com/support/w … erformance
- Cloudlinux has packaged it to their alt-php repos.
Sorry, but packaging pecl/timezonedb won't change anything, as PHP is built to use system tzdata, internal (or updated) data are ignored.
> it will cause about 600 file operations every time tz data is initialized
So only once per process.
In web env, each process may serve thousands of requests, so this is only a small overhead on startup, not on each request.
If you really want to save a few IO, you can delete unused timezone (in /usr/share/zoneinfo)
Remi's RPM repository - Forum → User support → pecl timezonedb
Generated in 0.005 seconds (60% PHP - 40% DB) with 9 queries
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 2 official extensions. Copyright © 2003–2009 PunBB.