cvs: php4(PHP_4_2_0) /main rfc1867.c
| From: | Jani Taskinen | Date: | Tue, 23 Apr 2002 03:08:49 +0000 |
| Subject: | cvs: php4(PHP_4_2_0) /main rfc1867.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-11326@lists.php.net to get a copy of this message | ||
sniper Mon Apr 22 23:08:49 2002 EDT
Modified files: (Branch: PHP_4_2_0)
/php4/main rfc1867.c
Log:
MFH the possible crash bug fix and warning -> notice change.
Index: php4/main/rfc1867.c
diff -u php4/main/rfc1867.c:1.94.2.2 php4/main/rfc1867.c:1.94.2.3
--- php4/main/rfc1867.c:1.94.2.2 Mon Apr 1 18:29:19 2002
+++ php4/main/rfc1867.c Mon Apr 22 23:08:49 2002
@@ -16,7 +16,7 @@
| Jani Taskinen <sniper@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: rfc1867.c,v 1.94.2.2 2002/04/01 23:29:19 sniper Exp $ */
+/* $Id: rfc1867.c,v 1.94.2.3 2002/04/23 03:08:49 sniper Exp $ */
/*
* This product includes software developed by the Apache Group
@@ -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;
}
@@ -726,7 +727,7 @@
cancel_upload = 0;
if(strlen(filename) == 0) {
- sapi_module.sapi_error(E_WARNING, "No file uploaded");
+ sapi_module.sapi_error(E_NOTICE, "No file uploaded");
cancel_upload = UPLOAD_ERROR_D;
}