php.ini and pgsql extension issue
| From: | Alain Roger | Date: | Sun, 03 Aug 2008 15:51:47 +0000 |
| Subject: | php.ini and pgsql extension issue | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-277648@lists.php.net to get a copy of this message | ||
Hi,
i found and solved an interesting issue under PHP 5.2.6.
when i use the standard installation file under windows XP
(php-5.2.6-win32-installer.msi), i get several error message in apache
error.log file, something like :
PHP Warning: PHP Startup: Unable to load dynamic library
'D:\\webserver\\PHP\\ext\\php_mssql.dll' - The specified module could not be
found.\r\n in Unknown on line 0
and this for several extensions even if the files are correctly installed in
the right folder.
I took a previous version of PHP 5.2.3 extension (dll) and i compare the
size:
in PHP 5.2.6, php_pgsql.dll is 96 kb whereas it is 164 kb under PHP 5.2.3.
so i just replace the 96 kb file by the 164 kb and restart apache 2.2.8. now
it works perfectly.
i reproduced the same thing for all dynamic extensions which were generating
the same issue and all works.
it could be interesting that developers of PHP take an eye on it.
--
Alain
------------------------------------
Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008