Attempt fix described in https://wso2.org/jira/browse/WSFPHP-455