// Destroy shuts down and frees any resources related to the PHP engine bindings.
Destroy shuts down and frees any resources related to the PHP engine bindings.
// Destroy shuts down and frees any resources related to the PHP engine bindings .
func (e *Engine) Destroy() {
	if e.engine == nil {
		return
	}
	for _, r := range e.receivers {
		r.Destroy()
	}
	e.receivers = nil
	for _, c := range e.contexts {
		c.Destroy()
	}
	e.contexts = nil
	C.engine_shutdown()
	C.free(unsafe.Pointer(e.engine))
	e.engine = nil
	engine = nil
}
func ( e * Engine ) Destroy ( ) { if e . engine == nil { return } for _ , r := range e . receivers { r . Destroy ( ) } e . receivers = nil for _ , c := range e . contexts { c . Destroy ( ) } e . contexts = nil C . engine_shutdown ( ) C . free ( unsafe . Pointer ( e . engine ) ) e . engine = nil engine = nil }
Destroy shuts down and frees any resources related to the PHP engine bindings.
Destroy shuts down and frees any resources related to the PHP engine bindings .