Fixed O+ testes
Fixed compatibility with ext/phar
Fixed memory leaks