Skip to content

Instantly share code, notes, and snippets.

@alecos71
alecos71 / Fix-Curl-SQLite3-in-PHP-7.4-under-Windows.md
Last active December 16, 2023 02:46
How to fix errors generated by PHP 7.4 related to CURL & SQLite3 under Windows

Fix for CURL & SQLite3 under Windows on PHP 7.4

If you have just downloaded and configured PHP 7.4 and you want to use CURL and SQLite3 you could run into a serious PHP-generated error for the reason that both CURL and SQlite3 make use of an external library located in the PHP directory. First SQLite3 was integrated into PHP but from version 7.4 no longer. The errors are these:

PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlite'

PHP Warning: PHP Startup: Unable to load dynamic library 'sqlite3'

PHP Warning: PHP Startup: Unable to load dynamic library 'php_curl'