Skip to content

Commit f05baec

Browse files
committed
Reorder fields of curl
1 parent 0c92538 commit f05baec

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

ext/curl/interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2893,7 +2893,7 @@ PHP_FUNCTION(curl_getinfo)
28932893
{
28942894
zval *zid;
28952895
php_curl *ch;
2896-
zend_long option = 0;
2896+
zend_long option = 0;
28972897

28982898
if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|l", &zid, &option) == FAILURE) {
28992899
return;

ext/curl/php_curl.h

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -121,40 +121,40 @@ void _php_curl_multi_close(zend_resource *);
121121
void _php_curl_share_close(zend_resource *);
122122

123123
typedef struct {
124-
zval func_name;
125-
zend_fcall_info_cache fci_cache;
126-
FILE *fp;
127-
smart_str buf;
128-
int method;
124+
zval func_name;
125+
zend_fcall_info_cache fci_cache;
126+
FILE *fp;
127+
smart_str buf;
128+
int method;
129129
zval stream;
130130
} php_curl_write;
131131

132132
typedef struct {
133-
zval func_name;
134-
zend_fcall_info_cache fci_cache;
135-
FILE *fp;
136-
zend_resource *res;
137-
int method;
138-
zval stream;
133+
zval func_name;
134+
zend_fcall_info_cache fci_cache;
135+
FILE *fp;
136+
zend_resource *res;
137+
int method;
138+
zval stream;
139139
} php_curl_read;
140140

141141
typedef struct {
142-
zval func_name;
143-
zend_fcall_info_cache fci_cache;
144-
int method;
142+
zval func_name;
143+
zend_fcall_info_cache fci_cache;
144+
int method;
145145
} php_curl_progress, php_curl_fnmatch;
146146

147147
typedef struct {
148-
php_curl_write *write;
149-
php_curl_write *write_header;
150-
php_curl_read *read;
148+
php_curl_write *write;
149+
php_curl_write *write_header;
150+
php_curl_read *read;
151151
#if CURLOPT_PASSWDFUNCTION != 0
152-
zval passwd;
152+
zval passwd;
153153
#endif
154-
zval std_err;
155-
php_curl_progress *progress;
154+
zval std_err;
155+
php_curl_progress *progress;
156156
#if LIBCURL_VERSION_NUM >= 0x071500 /* Available since 7.21.0 */
157-
php_curl_fnmatch *fnmatch;
157+
php_curl_fnmatch *fnmatch;
158158
#endif
159159
} php_curl_handlers;
160160

@@ -174,22 +174,22 @@ struct _php_curl_free {
174174
};
175175

176176
typedef struct {
177-
struct _php_curl_error err;
178-
struct _php_curl_free *to_free;
177+
CURL *cp;
178+
php_curl_handlers *handlers;
179+
zend_resource *res;
180+
struct _php_curl_free *to_free;
179181
struct _php_curl_send_headers header;
180-
CURL *cp;
181-
php_curl_handlers *handlers;
182-
zend_resource *res;
183-
zend_bool in_callback;
184-
uint32_t clone;
182+
struct _php_curl_error err;
183+
zend_bool in_callback;
184+
uint32_t clone;
185185
} php_curl;
186186

187187
#define CURLOPT_SAFE_UPLOAD -1
188188

189189
typedef struct {
190-
int still_running;
191-
CURLM *multi;
192-
zend_llist easyh;
190+
int still_running;
191+
CURLM *multi;
192+
zend_llist easyh;
193193
} php_curlm;
194194

195195
typedef struct {

0 commit comments

Comments
 (0)