/
Const.hx
427 lines (377 loc) · 12.7 KB
/
Const.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
/*
* Copyright (C)2005-2019 Haxe Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
package php;
/**
This class contains externs for native PHP constants defined in global namespace.
For native PHP functions in global namespace see `php.Global`.
**/
@:phpGlobal
extern class Const {
/**
If this constant is defined and equals `true` then Haxe will not set error handler automatically.
**/
static final HAXE_CUSTOM_ERROR_HANDLER:Bool;
/**
@see http://php.net/manual/en/reserved.constants.php
**/
static final PHP_VERSION_ID:Int;
static final PHP_OS:String;
static final PHP_SAPI:String;
static final PHP_BINARY:String;
static final PHP_EOL:String;
static final PHP_INT_MAX:Int;
static final PHP_INT_MIN:Int;
static final PHP_INT_SIZE:Int;
/**
@see http://php.net/manual/en/language.constants.predefined.php
**/
static final __LINE__:Int;
static final __FILE__:String;
static final __DIR__:String;
static final __FUNCTION__:String;
static final __CLASS__:String;
static final __TRAIT__:String;
static final __METHOD__:String;
static final __NAMESPACE__:String;
/**
@see https://php.net/manual/en/dir.constants.php
**/
static final DIRECTORY_SEPARATOR:String;
static final PATH_SEPARATOR:String;
static final SCANDIR_SORT_ASCENDING:Int;
static final SCANDIR_SORT_DESCENDING:Int;
static final SCANDIR_SORT_NONE:Int;
/**
@see http://php.net/manual/en/errorfunc.constants.php
**/
static final E_ERROR:Int;
static final E_WARNING:Int;
static final E_PARSE:Int;
static final E_NOTICE:Int;
static final E_CORE_ERROR:Int;
static final E_CORE_WARNING:Int;
static final E_COMPILE_ERROR:Int;
static final E_COMPILE_WARNING:Int;
static final E_USER_ERROR:Int;
static final E_USER_WARNING:Int;
static final E_USER_NOTICE:Int;
static final E_STRICT:Int;
static final E_RECOVERABLE_ERROR:Int;
static final E_DEPRECATED:Int;
static final E_USER_DEPRECATED:Int;
static final E_ALL:Int;
/**
@see http://php.net/manual/en/function.count.php
**/
static final COUNT_NORMAL:Int;
static final COUNT_RECURSIVE:Int;
/**
@see http://php.net/manual/en/function.array-filter.php
**/
static final ARRAY_FILTER_USE_KEY:Int;
static final ARRAY_FILTER_USE_BOTH:Int;
/**
@see http://php.net/manual/en/function.debug-backtrace.php
**/
static final DEBUG_BACKTRACE_PROVIDE_OBJECT:Int;
static final DEBUG_BACKTRACE_IGNORE_ARGS:Int;
/**
@see http://php.net/manual/en/math.constants.php
**/
static final M_PI:Float;
static final M_E:Float;
static final M_LOG2E:Float;
static final M_LOG10E:Float;
static final M_LN2:Float;
static final M_LN10:Float;
static final M_PI_2:Float;
static final M_PI_4:Float;
static final M_1_PI:Float;
static final M_2_PI:Float;
static final M_SQRTPI:Float;
static final M_2_SQRTPI:Float;
static final M_SQRT2:Float;
static final M_SQRT3:Float;
static final M_SQRT1_2:Float;
static final M_LNPI:Float;
static final M_EULER:Float;
static final PHP_ROUND_HALF_UP:Int;
static final PHP_ROUND_HALF_DOWN:Int;
static final PHP_ROUND_HALF_EVEN:Int;
static final PHP_ROUND_HALF_ODD:Int;
static final NAN:Float;
static final INF:Float;
/**
@see http://php.net/manual/en/function.setlocale.php
**/
static final LC_ALL:Int;
static final LC_COLLATE:Int;
static final LC_CTYPE:Int;
static final LC_MONETARY:Int;
static final LC_NUMERIC:Int;
static final LC_TIME:Int;
static final LC_MESSAGES:Int;
/**
@see http://php.net/manual/en/features.commandline.io-streams.php
**/
static final STDIN:Resource;
static final STDOUT:Resource;
static final STDERR:Resource;
/**
@see http://php.net/manual/en/function.preg-match-all.php
**/
static final PREG_PATTERN_ORDER:Int;
static final PREG_SET_ORDER:Int;
static final PREG_OFFSET_CAPTURE:Int;
/**
@see http://php.net/manual/en/function.preg-split.php
**/
static final PREG_SPLIT_NO_EMPTY:Int;
static final PREG_SPLIT_DELIM_CAPTURE:Int;
static final PREG_SPLIT_OFFSET_CAPTURE:Int;
/**
@see http://php.net/manual/en/function.preg-last-error.php
**/
static final PREG_NO_ERROR:Int;
static final PREG_INTERNAL_ERROR:Int;
static final PREG_BACKTRACK_LIMIT_ERROR:Int;
static final PREG_RECURSION_LIMIT_ERROR:Int;
static final PREG_BAD_UTF8_ERROR:Int;
static final PREG_BAD_UTF8_OFFSET_ERROR:Int;
static final PREG_JIT_STACKLIMIT_ERROR:Int;
/**
@see http://php.net/manual/en/function.htmlspecialchars.php
**/
static final ENT_COMPAT:Int;
static final ENT_QUOTES:Int;
static final ENT_NOQUOTES:Int;
static final ENT_IGNORE:Int;
static final ENT_SUBSTITUTE:Int;
static final ENT_DISALLOWED:Int;
static final ENT_HTML401:Int;
static final ENT_XML1:Int;
static final ENT_XHTML:Int;
static final ENT_HTML5:Int;
/**
@see http://php.net/manual/en/function.str-pad.php
**/
static final STR_PAD_RIGHT:Int;
static final STR_PAD_LEFT:Int;
static final STR_PAD_BOTH:Int;
/**
@see http://php.net/manual/en/function.feof.php
**/
static final SEEK_SET:Int;
static final SEEK_CUR:Int;
static final SEEK_END:Int;
/**
@see http://php.net/manual/en/function.stream-socket-server.php
**/
static final STREAM_SERVER_BIND:Int;
static final STREAM_SERVER_LISTEN:Int;
/**
@see http://php.net/manual/en/function.stream-socket-client.php
**/
static final STREAM_CLIENT_CONNECT:Int;
static final STREAM_CLIENT_ASYNC_CONNECT:Int;
static final STREAM_CLIENT_PERSISTENT:Int;
/**
@see http://php.net/manual/en/sockets.constants.php
**/
static final SOCK_STREAM:Int;
static final SOCK_DGRAM:Int;
static final SOCK_SEQPACKET:Int;
static final SOCK_RAW:Int;
static final SOCK_RDM:Int;
static final AF_INET:Int;
static final AF_INET6:Int;
static final AF_UNIX:Int;
static final SOL_TCP:Int;
static final SOL_SOCKET:Int;
static final SO_RCVTIMEO:Int;
static final SO_SNDTIMEO:Int;
static final TCP_NODELAY:Int;
static final PHP_BINARY_READ:Int;
/**
@see http://php.net/manual/en/json.constants.php
**/
static final JSON_ERROR_NONE:Int;
static final JSON_ERROR_DEPTH:Int;
static final JSON_ERROR_STATE_MISMATCH:Int;
static final JSON_ERROR_CTRL_CHAR:Int;
static final JSON_ERROR_SYNTAX:Int;
static final JSON_ERROR_UTF8:Int;
static final JSON_ERROR_RECURSION:Int;
static final JSON_ERROR_INF_OR_NAN:Int;
static final JSON_ERROR_UNSUPPORTED_TYPE:Int;
static final JSON_HEX_TAG:Int;
static final JSON_HEX_AMP:Int;
static final JSON_HEX_APOS:Int;
static final JSON_HEX_QUOT:Int;
static final JSON_FORCE_OBJECT:Int;
static final JSON_NUMERIC_CHECK:Int;
static final JSON_BIGINT_AS_STRING:Int;
static final JSON_PRETTY_PRINT:Int;
static final JSON_UNESCAPED_SLASHES:Int;
static final JSON_UNESCAPED_UNICODE:Int;
static final JSON_PARTIAL_OUTPUT_ON_ERROR:Int;
static final JSON_PRESERVE_ZERO_FRACTION:Int;
/**
@see http://php.net/manual/en/mysqli.constants.php
**/
static final MYSQLI_READ_DEFAULT_GROUP:Int;
static final MYSQLI_READ_DEFAULT_FILE:Int;
static final MYSQLI_OPT_CONNECT_TIMEOUT:Int;
static final MYSQLI_OPT_LOCAL_INFILE:Int;
static final MYSQLI_INIT_COMMAND:Int;
static final MYSQLI_CLIENT_SSL:Int;
static final MYSQLI_CLIENT_COMPRESS:Int;
static final MYSQLI_CLIENT_INTERACTIVE:Int;
static final MYSQLI_CLIENT_IGNORE_SPACE:Int;
static final MYSQLI_CLIENT_NO_SCHEMA:Int;
static final MYSQLI_CLIENT_MULTI_QUERIES:Int;
static final MYSQLI_STORE_RESULT:Int;
static final MYSQLI_USE_RESULT:Int;
static final MYSQLI_ASSOC:Int;
static final MYSQLI_NUM:Int;
static final MYSQLI_BOTH:Int;
static final MYSQLI_NOT_NULL_FLAG:Int;
static final MYSQLI_PRI_KEY_FLAG:Int;
static final MYSQLI_UNIQUE_KEY_FLAG:Int;
static final MYSQLI_MULTIPLE_KEY_FLAG:Int;
static final MYSQLI_BLOB_FLAG:Int;
static final MYSQLI_UNSIGNED_FLAG:Int;
static final MYSQLI_ZEROFILL_FLAG:Int;
static final MYSQLI_AUTO_INCREMENT_FLAG:Int;
static final MYSQLI_TIMESTAMP_FLAG:Int;
static final MYSQLI_SET_FLAG:Int;
static final MYSQLI_NUM_FLAG:Int;
static final MYSQLI_PART_KEY_FLAG:Int;
static final MYSQLI_GROUP_FLAG:Int;
static final MYSQLI_TYPE_DECIMAL:Int;
static final MYSQLI_TYPE_NEWDECIMAL:Int;
static final MYSQLI_TYPE_BIT:Int;
static final MYSQLI_TYPE_TINY:Int;
static final MYSQLI_TYPE_SHORT:Int;
static final MYSQLI_TYPE_LONG:Int;
static final MYSQLI_TYPE_FLOAT:Int;
static final MYSQLI_TYPE_DOUBLE:Int;
static final MYSQLI_TYPE_NULL:Int;
static final MYSQLI_TYPE_TIMESTAMP:Int;
static final MYSQLI_TYPE_LONGLONG:Int;
static final MYSQLI_TYPE_INT24:Int;
static final MYSQLI_TYPE_DATE:Int;
static final MYSQLI_TYPE_TIME:Int;
static final MYSQLI_TYPE_DATETIME:Int;
static final MYSQLI_TYPE_YEAR:Int;
static final MYSQLI_TYPE_NEWDATE:Int;
static final MYSQLI_TYPE_INTERVAL:Int;
static final MYSQLI_TYPE_ENUM:Int;
static final MYSQLI_TYPE_SET:Int;
static final MYSQLI_TYPE_TINY_BLOB:Int;
static final MYSQLI_TYPE_MEDIUM_BLOB:Int;
static final MYSQLI_TYPE_LONG_BLOB:Int;
static final MYSQLI_TYPE_BLOB:Int;
static final MYSQLI_TYPE_VAR_STRING:Int;
static final MYSQLI_TYPE_STRING:Int;
static final MYSQLI_TYPE_CHAR:Int;
static final MYSQLI_TYPE_GEOMETRY:Int;
static final MYSQLI_NEED_DATA:Int;
static final MYSQLI_NO_DATA:Int;
static final MYSQLI_DATA_TRUNCATED:Int;
static final MYSQLI_ENUM_FLAG:Int;
static final MYSQLI_BINARY_FLAG:Int;
static final MYSQLI_CURSOR_TYPE_FOR_UPDATE:Int;
static final MYSQLI_CURSOR_TYPE_NO_CURSOR:Int;
static final MYSQLI_CURSOR_TYPE_READ_ONLY:Int;
static final MYSQLI_CURSOR_TYPE_SCROLLABLE:Int;
static final MYSQLI_STMT_ATTR_CURSOR_TYPE:Int;
static final MYSQLI_STMT_ATTR_PREFETCH_ROWS:Int;
static final MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH:Int;
static final MYSQLI_SET_CHARSET_NAME:Int;
static final MYSQLI_REPORT_INDEX:Int;
static final MYSQLI_REPORT_ERROR:Int;
static final MYSQLI_REPORT_STRICT:Int;
static final MYSQLI_REPORT_ALL:Int;
static final MYSQLI_REPORT_OFF:Int;
static final MYSQLI_DEBUG_TRACE_ENABLED:Int;
static final MYSQLI_SERVER_QUERY_NO_GOOD_INDEX_USED:Int;
static final MYSQLI_SERVER_QUERY_NO_INDEX_USED:Int;
static final MYSQLI_REFRESH_GRANT:Int;
static final MYSQLI_REFRESH_LOG:Int;
static final MYSQLI_REFRESH_TABLES:Int;
static final MYSQLI_REFRESH_HOSTS:Int;
static final MYSQLI_REFRESH_STATUS:Int;
static final MYSQLI_REFRESH_THREADS:Int;
static final MYSQLI_REFRESH_SLAVE:Int;
static final MYSQLI_REFRESH_MASTER:Int;
static final MYSQLI_TRANS_COR_AND_CHAIN:Int;
static final MYSQLI_TRANS_COR_AND_NO_CHAIN:Int;
static final MYSQLI_TRANS_COR_RELEASE:Int;
static final MYSQLI_TRANS_COR_NO_RELEASE:Int;
static final MYSQLI_TRANS_START_READ_ONLY:Int;
static final MYSQLI_TRANS_START_READ_WRITE:Int;
static final MYSQLI_TRANS_START_CONSISTENT_SNAPSHOT:Int;
/**
@see http://php.net/manual/en/sqlite3.constants.php
**/
static final SQLITE3_ASSOC:Int;
static final SQLITE3_NUM:Int;
static final SQLITE3_BOTH:Int;
static final SQLITE3_INTEGER:Int;
static final SQLITE3_FLOAT:Int;
static final SQLITE3_TEXT:Int;
static final SQLITE3_BLOB:Int;
static final SQLITE3_NULL:Int;
static final SQLITE3_OPEN_READONLY:Int;
static final SQLITE3_OPEN_READWRITE:Int;
static final SQLITE3_OPEN_CREATE:Int;
/**
@see http://php.net/manual/en/function.glob.php
**/
static final GLOB_MARK:Int;
static final GLOB_NOSORT:Int;
static final GLOB_NOCHECK:Int;
static final GLOB_NOESCAPE:Int;
static final GLOB_BRACE:Int;
static final GLOB_ONLYDIR:Int;
static final GLOB_ERR:Int;
/**
@see http://php.net/manual/en/zlib.constants.php
**/
static final FORCE_GZIP:Int;
static final FORCE_DEFLATE:Int;
static final ZLIB_ENCODING_RAW:Int;
static final ZLIB_ENCODING_DEFLATE:Int;
static final ZLIB_ENCODING_GZIP:Int;
static final ZLIB_FILTERED:Int;
static final ZLIB_HUFFMAN_ONLY:Int;
static final ZLIB_FIXED:Int;
static final ZLIB_RLE:Int;
static final ZLIB_DEFAULT_STRATEGY:Int;
static final ZLIB_BLOCK:Int;
static final ZLIB_NO_FLUSH:Int;
static final ZLIB_PARTIAL_FLUSH:Int;
static final ZLIB_SYNC_FLUSH:Int;
static final ZLIB_FULL_FLUSH:Int;
static final ZLIB_FINISH:Int;
}