Updated PHP-API

Minor changes to PHP-API