./configure --enable-curl
./configure --with-curl
1.What is the difference between enable and with parameter commands?
2. How to compile the extension into php instead of existing in the form of .so dynamic extension?
Update
3. Which extensions are officially supported by PHP? Are the ones in the ext directory of the PHP source code package officially supported by PHP? Can it be compiled into php?
4. What command is used to compile officially supported extensions into php?
enable is to enable extensions that come with the PHP source code package but are not enabled by default, such as ftp and exif extensions. with specifies the location of the resource library that the extension depends on. If it is the default location, it can be left blank.
php extensions are divided into two types: static compilation and dynamic compilation. Static compilation is compiled and installed along with the source code of PHP, that is, extensions enabled by --enable and --with. Dynamic compilation is a way to use the phpize command to add extensions to PHP in an already usable PHP environment. This method is the generated so file. So if you want to compile the extension into the php kernel, you need to compile and install it together with php.
Yes, the extensions in the ext directory of the PHP source code package are officially supported by default, and some are extensions in the pecl library. Some extensions of pecl are also officially supported, and some are supported by third-party developers.
Compile and install the extension together with php, which is the configure command
The first question: enable and with are both options during compilation, and enable is more often about enabling an extension http://php.net/manual/en/conf...
Second question: Extensions officially supported by PHP can be compiled into PHP when compiling the source code, while third-party extensions must be introduced in the form of so