PHP7 RC5 ZTS - Nonexistent php_mysqli.dll

PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/debug-zts-20151012/php_mysqli.dll

Since I’ve installed php 7 zts (for pthreads), with these options: --with-mysql=/usr/bin/mysql_config --with-mysqli I can’t locate where is the extension mysqli. But I though this extension is build with php. So where is my error ?

In php.ini: extension=php_mysqli.dll is enable, without change extension_dir.
And the file realy doesn’t exist.

Same if i use locate or grep, i can’t find any mysqli.dll or mysqli.so.

Does someone have any solution for me ?

Alaanor.

nope. SQLite is built-in via PDO.

Sorry, but where do you hear something about SQLite in this topic ? I ask about mysqli not SQLite and as I know, this isn’t the same…

If the mysqli.dll file is missing. You can download an archive of it. I normally download 5.4 since it has most of the old .dll files

http://windows.php.net/downloads/qa/archives/php-5.4.10RC1-Win32-VC9-x86.zip

/usr/lib/php/extensions/debug-zts-20151012/php_mysqli.dll: invalid ELF header in Unknown on line 0

When I use a the php_mysqli.dll from php5.4. (I’ve already tried to do that 2 day ago and I’ve just tried one more time now.)

I was only correcting your assumption about what DB drivers are built into PHP by default.

Maybe PHP 7 removed the mysql and mysqli drivers all together? I believe this should be the first release of PHP 7, but I don’t see it on the main website. I too want to see. I have a copy of php-7.0.0RC1 on my PC so I’ll have to test it out when I get back from work.

No, mysqli is still a core extension: https://github.com/gophp7/gophp7-ext/wiki/extensions-catalog

Extensions are compiled specifically for each version of PHP AFAIK, so I wouldn’t copy files from one version to another. It looks like you’re running Linux, so the extensions won’t be .dll files anyway.

Try commenting out the line that references the .dll file, and then check the output of phpinfo() and see if you have an entry for mysqli.

It looks like you’re running Linux, so the extensions won’t be .dll files anyway.

Right, I’m on linux. So why php.ini have only line with .dll file ?

Try commenting out the line that references the .dll file, and then
check the output of phpinfo() and see if you have an entry for mysqli.

Ok. Great new, mysqli is here :smile:. That just that :no_mouth:. I can’t realize how I can do something like that. :confounded:

Solution: I’ve just commented the line for the dll.

Thanks :slight_smile:

Oh, I did not see that. Thanks for letting me know.

Congrats.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.