1 Sep 2009 19:34
[PHP-DEV] Invalid library (maybe not a PHP library) : Error on load of new php pdo extension
Sanjeev Kumar <replyskumar <at> gmail.com>
2009-09-01 17:34:24 GMT
2009-09-01 17:34:24 GMT
Hello, On Loading my new PDO-interface based driver, PHP gives the error: "PHP: Startup: Invalid library (maybe not a PHP library) 'php_pdo_mydb.dll in unknow on line 0 " I wrote a PDO-based driver, modelling the code on lines of SQLite driver. Compiled my driver as win32-dll , added the extension to php.ini. on running PHP, I get the above error . To crosscheck, I used DependencyWalker tool to see if I have missed some Dll, I find that tools seems to find my Dll fine. The output list of Dll pdependancies of my driver-Dll looks exactly like that of php_pdo_sqlite.dll Used latest PHP windows src base. (I get the invalid library problem with both Debug & Release ver.) I have generated my dll using VC9.0 on windows-vista(64) choosing 32-bit(X86), with following C++ options(paste from Property-pages): /Od /I "../../main" /I "../../zend" /I "../../regex" /I "../../TSRM" /I "../../win32" /I "../standard" /I "../pdo" /D "WIN32" /D "_MBCS" /D "ZEND_WIN32" /D "FD_SETSIZE=256" /D "ZEND_DEBUG=0" /D "ZTS=1" /D "_USE_32BIT_TIME" /D "PHP_WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "PDO_GROOVY_EXPORTS" /D "_WINDLL" /FD /EHsc /MD Linker-Options(pasted from Property pages): /OUT:"Release\pdo_groovy.dll" /INCREMENTAL /NOLOGO /LIBPATH:"f:\php\dev" /DLL /MANIFEST /MANIFESTFILE:"Release\pdo_groovy.dll.intermediate.manifest"(Continue reading)
RSS Feed