From adf89c19004dbcb153ee8e651c980c60ffccb954 Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Sun, 16 Aug 2026 11:25:25 -0500 Subject: [PATCH] Depends on https://github.com/php-db/phpdb-mysql/pull/57 Proposed fix for the argument count error around parameter binding. See https://github.com/tyrsson/messagebus-test/blob/master/docs/failure-notes.md#6 for more details. Signed-off-by: Joey Smith --- src/Statement.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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. + */ + } }