Added diagnostics to phalcon_memory_restore_stack_common()