Fixes for mod-php