php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43818 Wrong indications from pecl call
Submitted: 2008-01-11 13:42 UTC Modified: 2008-01-11 13:47 UTC
From: john at jcoppens dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.2.5 OS: Linux
Private report: No CVE-ID: None
 [2008-01-11 13:42 UTC] john at jcoppens dot com
Description:
------------
Sorry... It's not quite as simple as 'pecl install timezonedb':

It executes fine, but it instructs adding

extension=timezonedb.so

to php.ini. This is not correct, and causes php to complain about not finding the .so extension. The correct addition would be:

extension=no-debug-non-zts-20060613/timezonedb.so

I did quite extensive searching on the timezone thing before complaining and never found the reference to PECL & Co... Shouldn't this be documented  more extensively?

John

Reproduce code:
---------------
pecl install timezonedb

Expected result:
----------------
No problems after adding 'extension=timezonedb.so

Actual result:
--------------
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/timezonedb.so' - /usr/lib/php/extensions/timezonedb.so: cannot open shared object file: No such file or directory in Unknown on line 0


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-11 13:47 UTC] derick@php.net
Sorry, but this is correct. You need to have extension_dir set to the base directory, which is the default if you install PHP from sources. Perhaps your distribution changes this, or perhaps you changed the extension_dir setting yourself.

As to the comment about the timezone db, it's documented both here:
http://no2.php.net/manual/en/ref.datetime.php

and:
http://no2.php.net/manual/en/timezones.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 15:01:35 2024 UTC