Fix ZTS
Fix memory error in ext/xml