PHP 4.0 Bug #7037 Updated: patch for main/rfc1867.c (OpenBSD & SuSE)
| From: | jon@php.net | Date: | Sat, 23 Dec 2000 19:24:51 +0000 |
| Subject: | PHP 4.0 Bug #7037 Updated: patch for main/rfc1867.c (OpenBSD & SuSE) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42179@lists.php.net to get a copy of this message | ||
ID: 7037
Updated by: jon
Reported By: swenson@heronetwork.com
Old-Status: Feedback
Status: Closed
Bug Type: *Install and Config
Assigned To:
Comments:
According to Anil Madhavapeddy <avsm@openbsd.org>, this patch is definately no longer needed.
Previous Comments:
---------------------------------------------------------------------------
[2000-12-07 11:48:46] sniper@php.net
Is this patch still needed with latest CVS ?
---------------------------------------------------------------------------
[2000-10-30 13:04:20] swenson@heronetwork.com
It came from the OpenBSD patch tree for php4 requirements to run under OpenBSD.
When I I walked through it myself for the current distribution I couldn't see the reason for it
myself. But, I couldn't find the reason for it myself. I am not that experienced with doing
ports for OpenBSD. So I assumed it is some kind of hook for OpenBSD. It doesn't look like it is
doing any harm.
I have been told that one or more of the PHP developer gurus are on the OpenBSD lists. Since the
OpenBSD patch tree has it. I figured you'd want to know about it.
Wish I could be of more help on this one.
---------------------------------------------------------------------------
[2000-10-30 11:05:06] stas@php.net
I don't see a purpose of this patch. Could you please explain?
---------------------------------------------------------------------------
[2000-10-05 05:27:05] swenson@heronetwork.com
Just got latest CVS tarball installed on my two servers. I do not know if you have this patch from
the OpenBSD group or not. I can not find a related bug. So I am letting you know that it was needed.
--- main/rfc1867.c:1.38 Sat Aug 5 23:40:28 2000
+++ main/rfc1867.c Sun Sep 3 22:09:46 2000
@@ -112,7 +112,7 @@
int eolsize;
long bytes, max_file_size = 0;
char *namebuf=NULL, *filenamebuf=NULL, *lbuf=NULL,
- *abuf=NULL, *start_arr=NULL, *end_arr=NULL, *arr_index=NULL;
+ *abuf=NULL, *start_arr=NULL, *end_arr=NULL, *arr_index=NULL, *sbuf=NULL;
FILE *fp;
int itype, is_arr_upload=0, arr_len=0;
zval *http_post_files=NULL;
@@ -223,8 +223,10 @@
}
abuf = estrndup(namebuf, strlen(namebuf)-arr_len);
sprintf(lbuf, "%s_name[%s]", abuf,
arr_index);
+ sbuf = estrdup(abuf);
} else {
sprintf(lbuf, "%s_name", namebuf);
+ sbuf = estrdup(abuf);
}
s = strrchr(filenamebuf, '\');
if (s && s > filenamebuf) {
@@ -418,6 +418,7 @@
break;
}
}
+ if(sbuf) efree(sbuf);
SAFE_RETURN;
}
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7037