Fix double free which could lead in segfault
reassign properly zend pointers on shutdown
Merge pull request #1 from jocel1/master

Fix double free + pointers reassign on shutdown