Fixed coredump bug on php 5.3, fixed codestyle