Skip to content

Commit bf701e7

Browse files
committed
Move large rfc variables down
1 parent abc7dc2 commit bf701e7

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

src/Curl/Curl.php

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,6 @@ class Curl
77
const VERSION = '7.1.0';
88
const DEFAULT_TIMEOUT = 30;
99

10-
public static $RFC2616 = array(
11-
// RFC2616: "any CHAR except CTLs or separators".
12-
// CHAR = <any US-ASCII character (octets 0 - 127)>
13-
// CTL = <any US-ASCII control character
14-
// (octets 0 - 31) and DEL (127)>
15-
// separators = "(" | ")" | "<" | ">" | "@"
16-
// | "," | ";" | ":" | "\" | <">
17-
// | "/" | "[" | "]" | "?" | "="
18-
// | "{" | "}" | SP | HT
19-
// SP = <US-ASCII SP, space (32)>
20-
// HT = <US-ASCII HT, horizontal-tab (9)>
21-
// <"> = <US-ASCII double-quote mark (34)>
22-
'!', '#', '$', '%', '&', "'", '*', '+', '-', '.', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B',
23-
'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
24-
'Y', 'Z', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q',
25-
'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '|', '~',
26-
);
27-
public static $RFC6265 = array(
28-
// RFC6265: "US-ASCII characters excluding CTLs, whitespace DQUOTE, comma, semicolon, and backslash".
29-
// %x21
30-
'!',
31-
// %x23-2B
32-
'#', '$', '%', '&', "'", '(', ')', '*', '+',
33-
// %x2D-3A
34-
'-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':',
35-
// %x3C-5B
36-
'<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q',
37-
'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[',
38-
// %x5D-7E
39-
']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
40-
's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~',
41-
);
42-
4310
public $curl;
4411
public $id = null;
4512

@@ -81,6 +48,39 @@ class Curl
8148
private $xmlPattern = '~^(?:text/|application/(?:atom\+|rss\+)?)xml~i';
8249
private $defaultDecoder = null;
8350

51+
public static $RFC2616 = array(
52+
// RFC2616: "any CHAR except CTLs or separators".
53+
// CHAR = <any US-ASCII character (octets 0 - 127)>
54+
// CTL = <any US-ASCII control character
55+
// (octets 0 - 31) and DEL (127)>
56+
// separators = "(" | ")" | "<" | ">" | "@"
57+
// | "," | ";" | ":" | "\" | <">
58+
// | "/" | "[" | "]" | "?" | "="
59+
// | "{" | "}" | SP | HT
60+
// SP = <US-ASCII SP, space (32)>
61+
// HT = <US-ASCII HT, horizontal-tab (9)>
62+
// <"> = <US-ASCII double-quote mark (34)>
63+
'!', '#', '$', '%', '&', "'", '*', '+', '-', '.', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B',
64+
'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
65+
'Y', 'Z', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q',
66+
'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '|', '~',
67+
);
68+
public static $RFC6265 = array(
69+
// RFC6265: "US-ASCII characters excluding CTLs, whitespace DQUOTE, comma, semicolon, and backslash".
70+
// %x21
71+
'!',
72+
// %x23-2B
73+
'#', '$', '%', '&', "'", '(', ')', '*', '+',
74+
// %x2D-3A
75+
'-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':',
76+
// %x3C-5B
77+
'<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q',
78+
'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[',
79+
// %x5D-7E
80+
']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
81+
's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~',
82+
);
83+
8484
private static $deferredProperties = array(
8585
'effectiveUrl',
8686
'rfc2616',

0 commit comments

Comments
 (0)