When compiling PHP, there are a number of configuration options, as follows:
--with-curl=dir
--with-mysql=dir
--with-gd=dir
--enable-fpm
1: The above is not all PHP extension library, compile PHP together to compile, why some use--with, and some with--enable?
Issue 2: The above extension library in the PHP source file in the Ext directory, the dir stands for what meaning, the official explanation is not understand.
Reply content:
When compiling PHP, there are a number of configuration options, as follows:
--with-curl=dir
--with-mysql=dir
--with-gd=dir
--enable-fpm
1: The above is not all PHP extension library, compile PHP together to compile, why some use--with, and some with--enable?
Issue 2: The above extension library in the PHP source file in the Ext directory, the dir stands for what meaning, the official explanation is not understand.
1.--with is to compile it directly into the PHP executable file,--enable is compiled into. So or. dll and then load in php.ini.
- --with are dependent on third-party libraries, but if a third-party library is in the default location, it can be ignored [=dir];--enable does not need to rely on third-party libraries.
- Many of these extensions are just encapsulation of third-party libraries (providing binding), which is where the third-party library files need to be specified.