Fix zend_register_auto_global usage after zend module api changes (php 5.4)
Cast pointers to correct type
Fix php 5.4 api changes
Fix test name