Original: https://segmentfault.com/q/1010000009174725
--------------------------------------------------------------------------------------------------------------- -----------------------
Enable is an extension that enables PHP source packages, but is not enabled by default, such as FTP and EXIF extensions. With is the location of the repository where the extension depends, and if it is the default location, you can leave it blank.
PHP extension is divided into static compilation and dynamic compilation of two kinds, static compilation is the PHP source with the compilation of the installation, that is,--enable and--with enabled extensions. Dynamic compilation is the way to add extensions to PHP using the Phpize command in an already available PHP environment, which is the resulting so file. So if you want to compile the extension into the PHP kernel, you need to compile the installation with PHP.
Yes, the PHP source package ext Directory is the official default supported extensions, and part of the PECL Library extension, part of the PECL extension is officially supported, the other part is supported by third-party developers.
Compile and install the extension with PHP, which is the Configure command
Compile php./configure command What's the difference between enable and with