I've created a Dockerfile, and I use the wordpress:php7.4-apache.
I've tried to install the timezonedb extension using 3 different methods separately.
Method 1.
RUN docker-php-source extract \
&& pecl bundle -d /usr/src/php/ext timezonedb \
&& docker-php-ext-configure timezonedb \
&& docker-php-ext-install -j$(nproc) timezonedb \
&& docker-php-source delete
Method 2.
RUN mkdir -p /usr/local/src/pecl \
&& pecl bundle -d /usr/local/src/pecl timezonedb \
&& docker-php-ext-configure /usr/local/src/pecl/timezonedb \
&& docker-php-ext-install -j$(nproc) /usr/local/src/pecl/timezonedb \
&& rm -rf /usr/local/src/pecl
Method 3.
RUN apt-get -y install gcc make autoconf libc-dev pkg-config \
&& pecl install timezonedb \
&& bash -c "echo extension=timezonedb.so > /usr/local/etc/php/conf.d/docker-php-ext-timezonedb.ini"
The 3 methods work properly. After building the docker container, I confirm that the extension is installed and loaded properly by checking the PHP information:
CLI:

Web:

The timezonedb uses the latest version which according to the pecl site is version 2022.7.
I've checked the timezonedb github file, and there should be 597 timezones.
But, upon checking the timezonedb array, I can see it only contains 420 timezones.

So, the question is, why is it so different? What did I miss here?
Any kind of help would be much appreciated.