use new Php Type API
new Php Type API implementation bug fixes