From: Sara Golemon Date: Thu, 22 Jul 2004 03:23:33 +0000 (+0000) Subject: This should fix binary safety for bound results or may coogle strike me down. X-Git-Tag: PRE_ZEND_VM_DISPATCH_PATCH~405 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f064a2c8b92a3dc9b92118b3ad7afe65e297353a;p=php This should fix binary safety for bound results or may coogle strike me down. --- 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: