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"
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG
/PDB:"f:\php-sdk\php53dev\vc9\x86\php-5.3.0\ext\pdo_groovy\Release\pdo_groovy.pdb"
/SUBSYSTEM:WINDOWS /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:PROMPT
php5.lib ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib
Please let me know, where could be the potential problem.
thanks,
-sanjeev kumar