Bug #60195 [Com]: Unable to load dynamic library php_pgsql.dll
| From: | nitin dot cool4urchat at gmail dot com | Date: | Tue, 04 Mar 2014 01:39:16 +0000 |
| Subject: | Bug #60195 [Com]: Unable to load dynamic library php_pgsql.dll | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-184508@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60195&edit=1
ID: 60195
Comment by: nitin dot cool4urchat at gmail dot com
Reported by: wikeno at gmail dot com
Summary: Unable to load dynamic library php_pgsql.dll
Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: Windows 7 x64
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
http://stackoverflow.com/a/10439560/566092
Previous Comments:
------------------------------------------------------------------------
[2011-11-02 09:21:35] pajoye@php.net
That's why I said "in your PATH", or where the other apache DLLs are. See the
apache's documentation (php manual or apache's) for more info.
------------------------------------------------------------------------
[2011-11-02 09:12:47] wikeno at gmail dot com
That's strange! Running php from command line works fine. The problem occurs when using php as
an Apache module.
Apache's error.log:
PHP Warning: PHP Startup: Unable to load dynamic library '...\\php\\ext\\php_pgsql.dll' -
%1 is not a valid Win32 application.\r\n in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library
'...\php\ext\php_pgsql.dll' - %1 is not a valid Win32 application.
in <b>Unknown</b> on line <b>0</b><br />
[Wed Nov 02 10:07:04 2011] [notice] Child 2196: All worker threads have exited.
[Wed Nov 02 10:07:04 2011] [notice] Child 2196: Child process is exiting
[Wed Nov 02 10:07:04 2011] [notice] Apache/2.2.21 (Win32) PHP/5.3.8 configured -- resuming normal
operations
[Wed Nov 02 10:07:04 2011] [notice] Server built: Sep 9 2011 10:26:10
[Wed Nov 02 10:07:04 2011] [notice] Parent: Created child process 9068
PHP Warning: PHP Startup: Unable to load dynamic library '...\\php\\ext\\php_pgsql.dll' -
%1 is not a valid Win32 application.\r\n in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library
'...\php\ext\php_pgsql.dll' - %1 is not a valid Win32 application.
in <b>Unknown</b> on line <b>0</b><br />
[Wed Nov 02 10:07:05 2011] [notice] Child 9068: Child process is running
[Wed Nov 02 10:07:05 2011] [notice] Child 9068: Acquired the start mutex.
[Wed Nov 02 10:07:05 2011] [notice] Child 9068: Starting 64 worker threads.
[Wed Nov 02 10:07:05 2011] [notice] Child 9068: Starting thread to listen on port 80.
Apache starts, but PostgreSQL doesnt appear in phpinfo().
I have libpq.dll in PATH.
------------------------------------------------------------------------
[2011-11-01 20:12:41] pajoye@php.net
Be sure to have the libpq.dll in your PATH or the current dir:
c:\test\538ts>php -d extension_dir=ext -d extension=php_pgsql.dll -m | find
"pgsql"
pgsql
works just fine (libpq.dll being in the current dir).
------------------------------------------------------------------------
[2011-11-01 19:57:55] wikeno at gmail dot com
Description:
------------
PHP fails to load pgsql extension.
Error message: PHP Startup: Unable to load dynamic library '...\php\ext\php_pgsql.dll' -%1
is not a valid Win32 application
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60195&edit=1