Use zval_ptr_dtor rather than zval_dtor