Edit report at https://bugs.php.net/bug.php?id=60195&edit=1

 ID:                 60195
 User updated by:    wikeno at gmail dot com
 Reported by:        wikeno at gmail dot com
 Summary:            Unable to load dynamic library php_pgsql.dll
 Status:             Bogus
 Type:               Bug
 Package:            *General Issues
 Operating System:   Windows 7 x64
 PHP Version:        5.3.8
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2011-11-01 20:12:41] [email protected]

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

Reply via email to