Update to use zval_ptr_dtor