From: foobar Date: Tue, 18 Jun 2002 00:56:11 +0000 (+0000) Subject: Fixed bug: #17137, test pass still X-Git-Tag: php-4.3.0dev_zend2_alpha2~212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cff4039c4761c42306508e66a044e86cdf3c779f;p=php Fixed bug: #17137, test pass still --- 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 */ }