PHP fixes.

PHP status and other fixes.