@@ -262,7 +262,7 @@ static void register_http_post_files_variable_ex(char *var, zval *val, zval *htt
262
262
}
263
263
/* }}} */
264
264
265
- static int unlink_filename (char * * filename TSRMLS_DC ) /* {{{ */
265
+ static int unlink_filename (char * * filename TSRMLS_DC ) /* {{{ */
266
266
{
267
267
VCWD_UNLINK (* filename );
268
268
return 0 ;
@@ -303,7 +303,7 @@ typedef struct {
303
303
304
304
/*
305
305
* Fill up the buffer with client data.
306
- * returns number of bytes added to buffer.
306
+ * Returns number of bytes added to buffer.
307
307
*/
308
308
static int fill_buffer (multipart_buffer * self TSRMLS_DC )
309
309
{
@@ -416,7 +416,7 @@ static char *next_line(multipart_buffer *self)
416
416
return line ;
417
417
}
418
418
419
- /* returns the next CRLF terminated line from the client */
419
+ /* Returns the next CRLF terminated line from the client */
420
420
static char * get_line (multipart_buffer * self TSRMLS_DC )
421
421
{
422
422
char * ptr = next_line (self );
@@ -664,7 +664,7 @@ static char *php_ap_getword_conf(char **line TSRMLS_DC)
664
664
* Search for a string in a fixed-length byte string.
665
665
* If partial is true, partial matches are allowed at the end of the buffer.
666
666
* Returns NULL if not found, or a pointer to the start of the first match.
667
- */
667
+ */
668
668
static void * php_ap_memstr (char * haystack , int haystacklen , char * needle , int needlen , int partial )
669
669
{
670
670
int len = haystacklen ;
@@ -746,12 +746,14 @@ static char *multipart_buffer_read_body(multipart_buffer *self, unsigned int *le
746
746
total_bytes += read_bytes ;
747
747
}
748
748
749
- if (out ) out [total_bytes ] = '\0' ;
749
+ if (out ) {
750
+ out [total_bytes ] = '\0' ;
751
+ }
750
752
* len = total_bytes ;
751
753
752
754
return out ;
753
755
}
754
- /* }}} */
756
+ /* }}} */
755
757
756
758
/*
757
759
* The combined READER/HANDLER
@@ -772,7 +774,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) /* {{{ */
772
774
#endif
773
775
multipart_buffer * mbuff ;
774
776
zval * array_ptr = (zval * ) arg ;
775
- int fd = -1 ;
777
+ int fd = -1 ;
776
778
zend_llist header ;
777
779
void * event_extra_data = NULL ;
778
780
int llen = 0 ;
@@ -859,7 +861,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) /* {{{ */
859
861
while (!multipart_buffer_eof (mbuff TSRMLS_CC ))
860
862
{
861
863
char buff [FILLUNIT ];
862
- char * cd = NULL ,* param = NULL , * filename = NULL , * tmp = NULL ;
864
+ char * cd = NULL , * param = NULL , * filename = NULL , * tmp = NULL ;
863
865
size_t blen = 0 , wlen = 0 ;
864
866
off_t offset ;
865
867
@@ -1083,7 +1085,6 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) /* {{{ */
1083
1085
#endif
1084
1086
cancel_upload = UPLOAD_ERROR_B ;
1085
1087
} else if (blen > 0 ) {
1086
-
1087
1088
wlen = write (fd , buff , blen );
1088
1089
1089
1090
if (wlen == -1 ) {
@@ -1118,7 +1119,6 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) /* {{{ */
1118
1119
cancel_upload = 5 ;
1119
1120
}
1120
1121
#endif
1121
-
1122
1122
if (php_rfc1867_callback != NULL ) {
1123
1123
multipart_event_file_end event_file_end ;
1124
1124
@@ -1152,7 +1152,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) /* {{{ */
1152
1152
if (array_index ) {
1153
1153
efree (array_index );
1154
1154
}
1155
- array_index = estrndup (start_arr + 1 , array_len - 2 );
1155
+ array_index = estrndup (start_arr + 1 , array_len - 2 );
1156
1156
}
1157
1157
1158
1158
/* Add $foo_name */
@@ -1338,6 +1338,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) /* {{{ */
1338
1338
efree (param );
1339
1339
}
1340
1340
}
1341
+
1341
1342
fileupload_done :
1342
1343
if (php_rfc1867_callback != NULL ) {
1343
1344
multipart_event_end event_end ;
@@ -1348,6 +1349,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) /* {{{ */
1348
1349
1349
1350
SAFE_RETURN ;
1350
1351
}
1352
+ /* }}} */
1351
1353
1352
1354
/*
1353
1355
* Local variables:
0 commit comments