Fixed PHP new operator handling to ensure class names are case insensitive
Added support for checking PHP method existence and raising correct exception