mysql - What is the difference between enable and with when compiling php ./configure command
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-05-16 13:09:27
0
2
566
./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?

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(2)
某草草
  1. 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.

  2. 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.

  3. 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.

  4. Compile and install the extension together with php, which is the configure command

Ty80

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template