fix php logging