cvs: /php4/ext/standard basic_functions.c
| From: | Andrey Zmievski | Date: | Tue, 27 Jul 1999 16:17:58 +0000 |
| Subject: | cvs: /php4/ext/standard basic_functions.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-2847@lists.php.net to get a copy of this message | ||
andrey Tue Jul 27 12:17:58 1999 EDT
Modified files:
/php4/ext/standard basic_functions.c
Log:
Fix for bug #1887.
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.56 php4/ext/standard/basic_functions.c:1.57
--- php4/ext/standard/basic_functions.c:1.56 Tue Jul 27 09:40:54 1999
+++ php4/ext/standard/basic_functions.c Tue Jul 27 12:17:58 1999
@@ -936,7 +936,7 @@
f = *((Bucket **) a);
s = *((Bucket **) b);
- if (f->arKey) {
+ if (f->nKeyLength) {
key1.value.str.val = estrndup(f->arKey, f->nKeyLength);
key1.value.str.len = f->nKeyLength;
key1.type = IS_STRING;
@@ -944,7 +944,7 @@
key1.value.lval = f->h;
key1.type = IS_LONG;
}
- if (s->arKey) {
+ if (s->nKeyLength) {
key2.value.str.val = estrndup(s->arKey, s->nKeyLength);
key2.value.str.len = s->nKeyLength;
key2.type = IS_STRING;