cvs: php4 /ext/standard array.c

From: Date: Sat, 29 Dec 2001 20:47:25 +0000
Subject: cvs: php4 /ext/standard array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8846@lists.php.net to get a copy of this message
andi Sat Dec 29 15:47:25 2001 EDT Modified files: /php4/ext/standard array.c Log: @ Fix bug in krsort() where an extra character was being compared (Andi) - Fix bug in krsort() where an extra character was being compared (Andi) Index: php4/ext/standard/array.c diff -u php4/ext/standard/array.c:1.149 php4/ext/standard/array.c:1.150 --- php4/ext/standard/array.c:1.149 Sat Dec 22 06:49:56 2001 +++ php4/ext/standard/array.c Sat Dec 29 15:47:25 2001 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: array.c,v 1.149 2001/12/22 11:49:56 zak Exp $ */ +/* $Id: array.c,v 1.150 2001/12/29 20:47:25 andi Exp $ */ #include "php.h" #include "php_ini.h" @@ -137,7 +137,7 @@ } else { Z_TYPE(first) = IS_STRING; Z_STRVAL(first) = f->arKey; - Z_STRLEN(first) = f->nKeyLength; + Z_STRLEN(first) = f->nKeyLength-1; } if (s->nKeyLength == 0) { @@ -146,7 +146,7 @@ } else { Z_TYPE(second) = IS_STRING; Z_STRVAL(second) = s->arKey; - Z_STRLEN(second) = s->nKeyLength; + Z_STRLEN(second) = s->nKeyLength-1; } if (ARRAYG(compare_func)(&result, &first, &second TSRMLS_CC) == FAILURE) {

« previous php.cvs (#8846) next »