Move the warning fix to php_compat.h since the sources are from Zend.