Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#25034 - PHP looks for extensions where there aren't, tested with postgresql and php-pgsql

Attached to Project: Arch Linux
Opened by Brian Martínez (angelux) - Wednesday, 06 July 2011, 02:13 GMT
Last edited by Pierre Schmitz (Pierre) - Sunday, 11 September 2011, 08:51 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Extensions on php not loading, using php -v returns several warnings (one for each extension uncommented on the php.ini file) saying "extension not loaded"

Additional info:
Tested on package php-pgsql 5.3.6-4
The interesting parts of the php.ini are:

...
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
extension_dir = "/usr/lib/php/modules/"
...
...
;extension=odbc.so
;extension=openssl.so
extension=pdo_mysql.so
extension=pdo_odbc.so
extension=pdo_pgsql.so
extension=pdo_sqlite.so
extension=pgsql.so
extension=php_pgsql.so
;extension=phar.so
...



Steps to reproduce:

Install and configure Apache, postgresql and php so php and html error are displayed, uncomment the extension=pgsql.so line start Apache and postgresql servers, run php -v and check the output and then make a html file with the function pg_connect() to try to stablish a postgresql connection and test it.

Dirty workaround:

Make a soft link from directory modules named extensions on the same directory and edit php.ini so it aims to the softlink.
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Sunday, 11 September 2011, 08:51 GMT
Reason for closing:  No response
Comment by Pierre Schmitz (Pierre) - Saturday, 23 July 2011, 18:40 GMT
Did you notice you had loaded pgsql twice? Other than that I don't see anything wrong here and it works for me. I also miss some more detailed information about how to reproduce it and what mysterious module directory other than /usr/lib/php/modules/ you are talking about.

Loading...