Added patch from https://wso2.org/jira/browse/WSFPHP-460

Added patch from https://wso2.org/jira/browse/WSFPHP-460