Compiling PHP with --enable-embedded-mysqli and --with-mysqli

瘦欲@ 提交于 2020-01-06 19:44:47

问题


Is there some difference between the two? I compiled my PHP 5.5.8 with the following:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-pdo-mysql --with-gd --enable-embedded-mysqli --enable-zip --enable-mysqlnd --enable-cgi ...

and later, in the installed PHP; I was receiving:

call to undefined function mysqli_connect

On looking at the PHP docs; I notice that the command is actually

--with-mysqli

But I was presented with the --enable-embedded-mysqli option on tab completion by bash and thus, never thought to look further. What does the --enable-embedded-mysqli command do then?


回答1:


--enable-embedded-mysqli seem to activate MySQL Embedded support, but isn't very well documented.



来源:https://stackoverflow.com/questions/21241294/compiling-php-with-enable-embedded-mysqli-and-with-mysqli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!