From f064a2c8b92a3dc9b92118b3ad7afe65e297353a Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Thu, 22 Jul 2004 03:23:33 +0000 Subject: [PATCH] This should fix binary safety for bound results or may coogle strike me down. --- 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 4f6a80ad05..5345aa34fe 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.50.1