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 redis (https://pecl.php.net/package/redis)

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

./configure
 --with-curl=DIR
  --disable-dom
 --disable-fileinfo
 --with-gettext=DIR
 --without-iconv
 --disable-libxml
 --with-mysqli
 --with-openssl[=DIR]
 --disable-pdo
 --without-pear
 --disable-posix
 --enable-redis
   --disable-redis-session
    --enable-redis-igbinary
 --without-sqlite3
 --disable-tokenizer
 --disable-xmlreader
 --with-xmlrpc[=DIR]
 --disable-xmlwriter
 --with-zlib=DIR

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

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