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 3 extra extensions
#pecl install memcached (https://pecl.php.net/package/memcached)
#pecl install php-psr (https://github.com/jbboehr/php-psr)
#pecl install redis (https://pecl.php.net/package/redis)

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

./configure
 --disable-ctype
  --disable-dom
 --disable-fileinfo
 --disable-filter
 --disable-hash
 --without-iconv
 --disable-json
 --disable-libxml
 --with-libmemcached-dir=DIR
   --with-zlib-dir=DIR
    --disable-memcached-session
    --enable-memcached-sasl
 --disable-pdo
 --without-pear
 --disable-posix
 --enable-psr
 --enable-redis
   --disable-redis-session
    --enable-redis-igbinary
 --disable-session
 --without-sqlite3
 --disable-tokenizer
 --disable-xml
 --disable-xmlreader
 --with-xmlrpc[=DIR]
 --disable-xmlwriter

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

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