简体   繁体   English

使用--enable-embedded-mysqli和--with-mysqli编译PHP

[英]Compiling PHP with --enable-embedded-mysqli and --with-mysqli

Is there some difference between the two? 两者之间有区别吗? I compiled my PHP 5.5.8 with the following: 我用以下代码编译了PHP 5.5.8:

./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; 之后,在已安装的PHP中; I was receiving: 我收到了:

call to undefined function mysqli_connect 调用未定义函数mysqli_connect

On looking at the PHP docs ; 关于PHP文档 ; 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. 但是,bash在制表符--enable-embedded-mysqli我提供了--enable-embedded-mysqli选项,因此,我从没想过要进一步。 What does the --enable-embedded-mysqli command do then? --enable-embedded-mysqli命令会做什么?

--enable-embedded-mysqli似乎激活了MySQL嵌入式支持,但是没有很好的记录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM