diff --git a/src/Statement.php b/src/Statement.php index 7affd1f..3a2574a 100644 --- a/src/Statement.php +++ b/src/Statement.php @@ -233,4 +233,15 @@ protected function bindParametersFromContainer(): void call_user_func_array([$this->resource, 'bind_param'], $args); } } + + public function __clone() + { + $this->isPrepared = false; + $this->parameterContainer = clone $this->parameterContainer; + + /** + * TODO: @tyrsson @simon-mundy + * Track down when this was dropped and why. + */ + } }