I found out that the problem occurs when I update to the newest PHP version. When I go back to the old PHP version (5.4) I can successfully install the YAML module again. However, if I update to PHP version 5.5.6 then I get the error message as shown above. Am I doing something wrong, or is this a bug? Can anyone please give me some information?