PHP Compilations directives

This is a suggestion of compilation directive to use when compiling PHP specifically for the audited code.

The selection made below is based on the extension usage, found in the code (--enable, --with) and also the absence of usage (--disable, --without).

Some local extensions (--pdo-mysql, --with-libmbfl...) are also mentionned for help.

# install one extra extension
#pecl install xdebug (https://pecl.php.net/package/xdebug)

;;;;;;;;;;;;;;;;;;;;;;;;
; PHP configure list   ;
;;;;;;;;;;;;;;;;;;;;;;;;

./configure
 --with-curl=DIR
 --enable-fpm
   --with-fpm-user
    --with-fpm-group
    --with-fpm-systemd
    --with-fpm-acl
 --without-iconv
 --with-ldap[=DIR]
   --with-ldap-sasl[=DIR]
 --disable-libxml
 --enable-mbstring
   --with-libmbfl=DIR
    --enable-mbstr-enc-trans
    --disable-mbregex
  --with-mcrypt=[DIR]
 --with-openssl[=DIR]
 --disable-pdo
 --without-pear
 --with-pgsql=[DIR]
 --disable-posix
 --enable-soap
 --without-sqlite3
 --with-xdebug
 --disable-xml
 --with-xmlrpc[=DIR]
 --with-zlib=DIR

; For debug purposes
;--enable-dtrace
;--disable-phpdbg

;--enable-zend-signals
;--disable-opcache