Revert "php: temporary hack around current prod issue"

This reverts commit 2d4eb4bd7a9e849c8fa3f4123164a604de70ceee.