PHP-5.6 compatibility for apache2 filter SAPI
fix some warnings
Merge branch 'PHP-5.6'

* PHP-5.6:
  fix some warnings
  PHP-5.6 compatibility for apache2 filter SAPI

Fixes bug #66595