diff options
author | Zeev Suraski <zeev@php.net> | 2001-08-05 01:43:02 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-08-05 01:43:02 +0000 |
commit | 1159c84ab7849099d4a717cd05c2d920102040ed (patch) | |
tree | ed4e48bb27e2ce5de5972fc3a29c1d24c818467a /main/rfc1867.c | |
parent | fcc035108f7b8d2e169c5a592227b3df84d0573e (diff) | |
download | php-git-1159c84ab7849099d4a717cd05c2d920102040ed.tar.gz |
- TSRMLS_FETCH work
- whitespace fixes
Diffstat (limited to 'main/rfc1867.c')
-rw-r--r-- | main/rfc1867.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c index 6ad499e5e9..e8efe0851d 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -215,7 +215,7 @@ static void php_mime_split(char *buf, int cnt, char *boundary, zval *array_ptr T if(is_arr_upload) { arr_len = strlen(start_arr); if(arr_index) efree(arr_index); - arr_index = estrndup(start_arr+1,arr_len-2); + arr_index = estrndup(start_arr+1, arr_len-2); } } else { php_error(E_WARNING, "File upload error - no name component in content disposition"); @@ -366,13 +366,13 @@ static void php_mime_split(char *buf, int cnt, char *boundary, zval *array_ptr T } bytes = 0; - fp = php_open_temporary_file(PG(upload_tmp_dir), "php", &temp_filename); + fp = php_open_temporary_file(PG(upload_tmp_dir), "php", &temp_filename TSRMLS_CC); if (!fp) { php_error(E_WARNING, "File upload error - unable to create a temporary file"); SAFE_RETURN; } if ((loc - ptr - 4) > PG(upload_max_filesize)) { - php_error(E_WARNING, "Max file size of %ld bytes exceeded - file [%s] not saved", PG(upload_max_filesize),namebuf); + php_error(E_WARNING, "Max file size of %ld bytes exceeded - file [%s] not saved", PG(upload_max_filesize), namebuf); upload_successful = 0; } else if (max_file_size && ((loc - ptr - 4) > max_file_size)) { php_error(E_WARNING, "Max file size exceeded - file [%s] not saved", namebuf); |