From 8fa16289586ba4f48f33d64e0c2388af707dd886 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Thu, 22 Jul 2004 03:26:59 +0000 Subject: [PATCH] MFH: This should fix binary safety for bound results. --- ext/mysqli/mysqli_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index 231d231109..ac5f0b80cd 100644 --- a/ext/mysqli/mysqli_api.c +++ b/ext/mysqli/mysqli_api.c @@ -629,7 +629,7 @@ PHP_FUNCTION(mysqli_stmt_fetch) ZVAL_LONG(stmt->result.vars[i], llval); } } else { - ZVAL_STRING(stmt->result.vars[i], stmt->result.buf[i].val, 1); + ZVAL_STRINGL(stmt->result.vars[i], stmt->result.buf[i].val, stmt->result.buf[i].buflen, 1); } break; default: -- 2.40.0