From cff4039c4761c42306508e66a044e86cdf3c779f Mon Sep 17 00:00:00 2001 From: foobar Date: Tue, 18 Jun 2002 00:56:11 +0000 Subject: [PATCH] Fixed bug: #17137, test pass still --- ext/mbstring/mbstring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 5d8941dca1..a15aa98209 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -2792,8 +2792,8 @@ PHP_FUNCTION(mb_convert_variables) } } } else if (Z_TYPE_PP(var) == IS_STRING) { - string.val = Z_STRVAL_PP(args[n]); - string.len = Z_STRLEN_PP(args[n]); + string.val = Z_STRVAL_PP(var); + string.len = Z_STRLEN_PP(var); if (mbfl_encoding_detector_feed(identd, &string TSRMLS_CC)) { goto detect_end; /* complete detecting */ } -- 2.50.1