summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_api.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-10-10 20:06:35 +0000
committerAntony Dovgal <tony2001@php.net>2005-10-10 20:06:35 +0000
commit062626d03e0d5cd78273c7f0fa65f405790df63c (patch)
tree9481845d589f734c412350c1c2f4d3620713d1fb /ext/mysqli/mysqli_api.c
parenta5cea052e8a34ac38923d38261b2025f229133ee (diff)
downloadphp-git-062626d03e0d5cd78273c7f0fa65f405790df63c.tar.gz
use proper macros and vars instead of strlen()
Diffstat (limited to 'ext/mysqli/mysqli_api.c')
-rw-r--r--ext/mysqli/mysqli_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c
index 453fb023c4..f4b35014a6 100644
--- a/ext/mysqli/mysqli_api.c
+++ b/ext/mysqli/mysqli_api.c
@@ -571,7 +571,7 @@ PHP_FUNCTION(mysqli_stmt_execute)
case MYSQL_TYPE_VAR_STRING:
convert_to_string_ex(&stmt->param.vars[i]);
stmt->stmt->params[i].buffer = Z_STRVAL_PP(&stmt->param.vars[i]);
- stmt->stmt->params[i].buffer_length = strlen(Z_STRVAL_PP(&stmt->param.vars[i]));
+ stmt->stmt->params[i].buffer_length = Z_STRLEN_PP(&stmt->param.vars[i]);
break;
case MYSQL_TYPE_DOUBLE:
convert_to_double_ex(&stmt->param.vars[i]);