问题
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