PHP-5.6 compatibility for apache2 filter SAPI
fix some warnings