Do not download Firebird extension

I am trying to use the Firebird extension in PHP. I have extension files ( php_pdo_firebird.dll, php_interbase.dll ) in my ext folder. I add them to my php.ini file this way

 ... [PHP_PDO_FIREBIRD] extension=php_pdo_firebird.dll [PHP_INTERBASE] extension=php_interbase.dll ... 

No errors occur, saying that extensions cannot be loaded, and yet whenever I print my phpinfo , I do not see any of them. What am I missing here?

For what it's worth, I am running PHP version 5.3.14 TS using Apache 2.2 on Windows 7.

Edit: It seems that some errors are being logged, this is just that my error_log parameter has been overwritten (for those who see this, double check the C: \ Windows \ Temp \ php-errors log). Now he tells me that the specified modules cannot be found when the file explicitly exists.

 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_pdo_firebird.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_interbase.dll' - The specified module could not be found. in Unknown on line 0 
+4
source share
1 answer

I thought! Ok, remove the basics first:

  • Make sure the version of the DLL matches your version of PHP.
  • For those who use the Windows installer, for some reason it does not provide the ability to include Interbase and Firebird modules, so you will need to download the corresponding .zip file and copy them from the ext folder to.
  • Double check for any typos, such as irreplaceable backslashes, in the extension_dir setting. This only applies if the value is not "wrapped in quotation marks."

Now for the upheaval of grace. This error message is extremely misleading. At the moment, this should find your DLLs, but it fbclient.dll not have one integer part: fbclient.dll , which can be found in the bin folder of your Firebird installation. Wherever I read, before it was said to place fbclient.dll in the ext folder, but this only works if you put it in the root of your PHP folder.

Hope this helps future wayward souls :)

+4
source

All Articles