--- php-4.2.0/main/rfc1867.c Tue Apr 2 01:29:19 2002 +++ php-4.2.0RC4/main/rfc1867.c Mon Apr 22 23:54:06 2002 @@ -371,11 +371,12 @@ } entry = zend_llist_get_first(&header); - do { + while (entry) { if (!strcasecmp(entry->key, key)) { return entry->value; } - } while ((entry = zend_llist_get_next(&header))); + entry = zend_llist_get_next(&header); + } return NULL; }