Ease initialization of structs
Use ZendMM and fixed mem leak