File: php_res.h

package info (click to toggle)
global 6.6.14-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,612 kB
  • sloc: ansic: 132,180; sh: 5,017; javascript: 4,891; perl: 811; lisp: 676; makefile: 340; yacc: 122
file content (638 lines) | stat: -rw-r--r-- 19,120 bytes parent folder | download | duplicates (5)
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
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
/* ANSI-C code produced by gperf version 3.1 */
/* Command-line: gperf --language=ANSI-C --struct-type --slot-name=name --hash-fn-name=php_hash --lookup-fn-name=php_lookup  */
/* Computed positions: -k'1-2,4-5,8-9' */

#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
      && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
      && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
      && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
      && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
      && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
      && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
      && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
      && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
      && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
      && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
      && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
      && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
      && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
      && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
      && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
      && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
      && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
      && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
      && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
      && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
      && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
      && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
/* The character set is not based on ISO-646.  */
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gperf@gnu.org>."
#endif


#include "strmake.h"
#define START_VARIABLE	1001
#define START_WORD	2001
#define START_SHARP	3001
#define START_YACC	4001
#define IS_RESERVED_WORD(a)	((a) >= START_WORD)
#define IS_RESERVED_VARIABLE(a)	((a) >= START_VARIABLE && (a) < START_WORD)
#define IS_RESERVED_SHARP(a)	((a) >= START_SHARP && (a) < START_YACC)
#define IS_RESERVED_YACC(a)	((a) >= START_YACC)

#define PHP___CLASS__	2001
#define PHP___DIR__	2002
#define PHP___FILE__	2003
#define PHP___FUNCTION__	2004
#define PHP___LINE__	2005
#define PHP___METHOD__	2006
#define PHP___NAMESPACE__	2007
#define PHP___TRAIT__	2008
#define PHP_ABSTRACT	2009
#define PHP_AND	2010
#define PHP_ARRAY	2011
#define PHP_AS	2012
#define PHP_BREAK	2013
#define PHP_CALLABLE	2014
#define PHP_CASE	2015
#define PHP_CATCH	2016
#define PHP_CFUNCTION	2017
#define PHP_CLASS	2018
#define PHP_CLONE	2019
#define PHP_CONST	2020
#define PHP_CONTINUE	2021
#define PHP_DECLARE	2022
#define PHP_DEFAULT	2023
#define PHP_DEFINE	2024
#define PHP_DIE	2025
#define PHP_DO	2026
#define PHP_EACH	2027
#define PHP_ECHO	2028
#define PHP_ELSE	2029
#define PHP_ELSEIF	2030
#define PHP_EMPTY	2031
#define PHP_ENDDECLARE	2032
#define PHP_ENDFOR	2033
#define PHP_ENDFOREACH	2034
#define PHP_ENDIF	2035
#define PHP_ENDSWITCH	2036
#define PHP_ENDWHILE	2037
#define PHP_EVAL	2038
#define PHP_EXIT	2039
#define PHP_EXTENDS	2040
#define PHP_FALSE	2041
#define PHP_FINAL	2042
#define PHP_FINALLY	2043
#define PHP_FOR	2044
#define PHP_FOREACH	2045
#define PHP_FUNCTION	2046
#define PHP_GLOBAL	2047
#define PHP_GOTO	2048
#define PHP_IF	2049
#define PHP_IMPLEMENTS	2050
#define PHP_INCLUDE	2051
#define PHP_INCLUDE_ONCE	2052
#define PHP_INSTANCEOF	2053
#define PHP_INSTEADOF	2054
#define PHP_INTERFACE	2055
#define PHP_ISSET	2056
#define PHP_LIST	2057
#define PHP_NAMESPACE	2058
#define PHP_NEW	2059
#define PHP_OLD_FUNCTION	2060
#define PHP_OR	2061
#define PHP_PRINT	2062
#define PHP_PRIVATE	2063
#define PHP_PROTECTED	2064
#define PHP_PUBLIC	2065
#define PHP_REQUIRE	2066
#define PHP_REQUIRE_ONCE	2067
#define PHP_RETURN	2068
#define PHP_STATIC	2069
#define PHP_SWITCH	2070
#define PHP_THROW	2071
#define PHP_TRAIT	2072
#define PHP_TRY	2073
#define PHP_TRUE	2074
#define PHP_UNSET	2075
#define PHP_USE	2076
#define PHP_VAR	2077
#define PHP_WHILE	2078
#define PHP_XOR	2079
#define PHP_YIELD	2080
#define PHP_GLOBALS	1001
#define PHP_HTTP_COOKIE_VARS	1002
#define PHP_HTTP_ENV_VARS	1003
#define PHP_HTTP_GET_VARS	1004
#define PHP_HTTP_POST_FILES	1005
#define PHP_HTTP_POST_VARS	1006
#define PHP_HTTP_SERVER_VARS	1007
#define PHP_HTTP_SESSION_VARS	1008
#define PHP__COOKIE	1009
#define PHP__ENV	1010
#define PHP__FILES	1011
#define PHP__GET	1012
#define PHP__POST	1013
#define PHP__REQUEST	1014
#define PHP__SERVER	1015
#define PHP__SESSION	1016
struct keyword { char *name; int token; };

#define TOTAL_KEYWORDS 254
#define MIN_WORD_LENGTH 2
#define MAX_WORD_LENGTH 17
#define MIN_HASH_VALUE 3
#define MAX_HASH_VALUE 649
/* maximum key range = 647, duplicates = 0 */

#ifdef __GNUC__
__inline
#else
#ifdef __cplusplus
inline
#endif
#endif
static unsigned int
php_hash (register const char *str, register size_t len)
{
  static unsigned short asso_values[] =
    {
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650,  45,  20, 105, 220,  55,
       10,  65,  25,  55, 650,  15,  70,  10,  40,  55,
       90,  10, 120, 120, 100, 110,  70, 240, 110,  80,
      650, 650, 650, 650, 650,  35, 650,   5,  60,   0,
      140,   0,   0,   0,  10,   5, 650,  95,   0, 125,
        0,  20,  75, 650,  55,  40,   5,  70, 165, 230,
      230,  90, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650, 650, 650, 650, 650,
      650, 650, 650, 650, 650, 650
    };
  register unsigned int hval = len;

  switch (hval)
    {
      default:
        hval += asso_values[(unsigned char)str[8]];
      /*FALLTHROUGH*/
      case 8:
        hval += asso_values[(unsigned char)str[7]];
      /*FALLTHROUGH*/
      case 7:
      case 6:
      case 5:
        hval += asso_values[(unsigned char)str[4]];
      /*FALLTHROUGH*/
      case 4:
        hval += asso_values[(unsigned char)str[3]];
      /*FALLTHROUGH*/
      case 3:
      case 2:
        hval += asso_values[(unsigned char)str[1]];
      /*FALLTHROUGH*/
      case 1:
        hval += asso_values[(unsigned char)str[0]];
        break;
    }
  return hval;
}

struct keyword *
php_lookup (register const char *str, register size_t len)
{
  static struct keyword wordlist[] =
    {
      {""}, {""}, {""},
      {"new", PHP_NEW},
      {"else", PHP_ELSE},
      {"clone", PHP_CLONE},
      {""},
      {"if", PHP_IF},
      {"and", PHP_AND},
      {"case", PHP_CASE},
      {"endif", PHP_ENDIF},
      {"elseif", PHP_ELSEIF},
      {""}, {""},
      {"list", PHP_LIST},
      {"final", PHP_FINAL},
      {""},
      {"finally", PHP_FINALLY},
      {"callable", PHP_CALLABLE},
      {"each", PHP_EACH},
      {"catch", PHP_CATCH},
      {""}, {""},
      {"for", PHP_FOR},
      {"echo", PHP_ECHO},
      {"Final", PHP_FINAL},
      {"endfor", PHP_ENDFOR},
      {"Finally", PHP_FINALLY},
      {""},
      {"cfunction", PHP_CFUNCTION},
      {""}, {""},
      {"foreach", PHP_FOREACH},
      {"For", PHP_FOR},
      {""},
      {"endforeach", PHP_ENDFOREACH},
      {""}, {""},
      {"continue", PHP_CONTINUE},
      {"insteadof", PHP_INSTEADOF},
      {""}, {""},
      {"Foreach", PHP_FOREACH},
      {"New", PHP_NEW},
      {"goto", PHP_GOTO},
      {"instanceof", PHP_INSTANCEOF},
      {""},
      {"as", PHP_AS},
      {"And", PHP_AND},
      {""},
      {"false", PHP_FALSE},
      {""}, {""}, {""},
      {"namespace", PHP_NAMESPACE},
      {"isset", PHP_ISSET},
      {""},
      {"If", PHP_IF},
      {""},
      {"Else", PHP_ELSE},
      {"False", PHP_FALSE},
      {"static", PHP_STATIC},
      {""},
      {"try", PHP_TRY},
      {"true", PHP_TRUE},
      {"Endif", PHP_ENDIF},
      {"Elseif", PHP_ELSEIF},
      {"IF", PHP_IF},
      {"FOR", PHP_FOR},
      {"interface", PHP_INTERFACE},
      {"const", PHP_CONST},
      {"global", PHP_GLOBAL},
      {"old_function", PHP_OLD_FUNCTION},
      {""},
      {"Each", PHP_EACH},
      {"trait", PHP_TRAIT},
      {""},
      {"or", PHP_OR},
      {"Var", PHP_VAR},
      {"Echo", PHP_ECHO},
      {"unset", PHP_UNSET},
      {"Endfor", PHP_ENDFOR},
      {"include", PHP_INCLUDE},
      {"function", PHP_FUNCTION},
      {"List", PHP_LIST},
      {"class", PHP_CLASS},
      {""},
      {"As", PHP_AS},
      {"AND", PHP_AND},
      {"Insteadof", PHP_INSTEADOF},
      {"Endforeach", PHP_ENDFOREACH},
      {"EndFor", PHP_ENDFOR},
      {""},
      {"Function", PHP_FUNCTION},
      {"Namespace", PHP_NAMESPACE},
      {"Instanceof", PHP_INSTANCEOF},
      {""},
      {"ForEach", PHP_FOREACH},
      {"NEW", PHP_NEW},
      {""},
      {"EndForeach", PHP_ENDFOREACH},
      {""}, {""}, {""}, {""},
      {"Isset", PHP_ISSET},
      {""},
      {"Old_function", PHP_OLD_FUNCTION},
      {""},
      {"Goto", PHP_GOTO},
      {"Clone", PHP_CLONE},
      {""},
      {"Or", PHP_OR},
      {"use", PHP_USE},
      {"Case", PHP_CASE},
      {"EndIf", PHP_ENDIF},
      {"ElseIf", PHP_ELSEIF},
      {"Old_Function", PHP_OLD_FUNCTION},
      {"VAR", PHP_VAR},
      {"Interface", PHP_INTERFACE},
      {"Unset", PHP_UNSET},
      {""}, {""},
      {"Callable", PHP_CALLABLE},
      {"InsteadOf", PHP_INSTEADOF},
      {"Catch", PHP_CATCH},
      {""}, {""}, {""},
      {"EACH", PHP_EACH},
      {"InstanceOf", PHP_INSTANCEOF},
      {""},
      {"Include", PHP_INCLUDE},
      {"Xor", PHP_XOR},
      {"Cfunction", PHP_CFUNCTION},
      {""},
      {"Global", PHP_GLOBAL},
      {"require", PHP_REQUIRE},
      {"abstract", PHP_ABSTRACT},
      {""},
      {"print", PHP_PRINT},
      {"Static", PHP_STATIC},
      {"include_once", PHP_INCLUDE_ONCE},
      {"Continue", PHP_CONTINUE},
      {"CFunction", PHP_CFUNCTION},
      {"implements", PHP_IMPLEMENTS},
      {""}, {""},
      {"die", PHP_DIE},
      {""}, {""},
      {"define", PHP_DEFINE},
      {"declare", PHP_DECLARE},
      {"Use", PHP_USE},
      {""},
      {"Print", PHP_PRINT},
      {"public", PHP_PUBLIC},
      {""},
      {"Try", PHP_TRY},
      {"True", PHP_TRUE},
      {"array", PHP_ARRAY},
      {""},
      {"do", PHP_DO},
      {""},
      {"_ENV", PHP__ENV},
      {"ENDIF", PHP_ENDIF},
      {"ENDFOR", PHP_ENDFOR},
      {"AS", PHP_AS},
      {"XOR", PHP_XOR},
      {"eval", PHP_EVAL},
      {"Trait", PHP_TRAIT},
      {"Public", PHP_PUBLIC},
      {"FOREACH", PHP_FOREACH},
      {"var", PHP_VAR},
      {""},
      {"Const", PHP_CONST},
      {"_FILES", PHP__FILES},
      {"OR", PHP_OR},
      {"Abstract", PHP_ABSTRACT},
      {"GOTO", PHP_GOTO},
      {"Break", PHP_BREAK},
      {""}, {""}, {""},
      {"ELSE", PHP_ELSE},
      {"FINAL", PHP_FINAL},
      {"return", PHP_RETURN},
      {"FINALLY", PHP_FINALLY},
      {""}, {""},
      {"Class", PHP_CLASS},
      {""},
      {"Include_once", PHP_INCLUDE_ONCE},
      {""}, {""},
      {"Implements", PHP_IMPLEMENTS},
      {""},
      {"require_once", PHP_REQUIRE_ONCE},
      {""},
      {"EVAL", PHP_EVAL},
      {"Array", PHP_ARRAY},
      {""},
      {"Require", PHP_REQUIRE},
      {""},
      {"_GET", PHP__GET},
      {"BREAK", PHP_BREAK},
      {"GLOBAL", PHP_GLOBAL},
      {"GLOBALS", PHP_GLOBALS},
      {"__LINE__", PHP___LINE__},
      {"CASE", PHP_CASE},
      {"enddeclare", PHP_ENDDECLARE},
      {""}, {""}, {""}, {""}, {""}, {""},
      {"_COOKIE", PHP__COOKIE},
      {""},
      {"ECHO", PHP_ECHO},
      {"break", PHP_BREAK},
      {""},
      {"default", PHP_DEFAULT},
      {"TRY", PHP_TRY},
      {"Eval", PHP_EVAL},
      {"empty", PHP_EMPTY},
      {""},
      {"Include_Once", PHP_INCLUDE_ONCE},
      {"Die", PHP_DIE},
      {"LIST", PHP_LIST},
      {"Yield", PHP_YIELD},
      {"Define", PHP_DEFINE},
      {"Declare", PHP_DECLARE},
      {"USE", PHP_USE},
      {""},
      {"FALSE", PHP_FALSE},
      {""},
      {"extends", PHP_EXTENDS},
      {"__FILE__", PHP___FILE__},
      {"exit", PHP_EXIT},
      {"yield", PHP_YIELD},
      {"ELSEIF", PHP_ELSEIF},
      {"Do", PHP_DO},
      {""}, {""},
      {"while", PHP_WHILE},
      {""}, {""},
      {"endwhile", PHP_ENDWHILE},
      {""},
      {"EMPTY", PHP_EMPTY},
      {"Return", PHP_RETURN},
      {"__DIR__", PHP___DIR__},
      {"xor", PHP_XOR},
      {""},
      {"While", PHP_WHILE},
      {""}, {""}, {""}, {""}, {""}, {""},
      {"Require_once", PHP_REQUIRE_ONCE},
      {""},
      {"__CLASS__", PHP___CLASS__},
      {"Enddeclare", PHP_ENDDECLARE},
      {""},
      {"EXTENDS", PHP_EXTENDS},
      {""},
      {"EXIT", PHP_EXIT},
      {"throw", PHP_THROW},
      {""}, {""},
      {"__NAMESPACE__", PHP___NAMESPACE__},
      {""},
      {"CLONE", PHP_CLONE},
      {""},
      {"DO", PHP_DO},
      {"DIE", PHP_DIE},
      {"TRUE", PHP_TRUE},
      {"Empty", PHP_EMPTY},
      {"switch", PHP_SWITCH},
      {"INCLUDE", PHP_INCLUDE},
      {""},
      {"protected", PHP_PROTECTED},
      {"CATCH", PHP_CATCH},
      {""}, {""}, {""},
      {"endswitch", PHP_ENDSWITCH},
      {""}, {""},
      {"Extends", PHP_EXTENDS},
      {""},
      {"Exit", PHP_EXIT},
      {"ARRAY", PHP_ARRAY},
      {""},
      {"Require_Once", PHP_REQUIRE_ONCE},
      {""},
      {"Protected", PHP_PROTECTED},
      {""}, {""},
      {"Default", PHP_DEFAULT},
      {"Endwhile", PHP_ENDWHILE},
      {""}, {""}, {""},
      {"private", PHP_PRIVATE},
      {""}, {""},
      {"UNSET", PHP_UNSET},
      {""}, {""},
      {"EndWhile", PHP_ENDWHILE},
      {"__TRAIT__", PHP___TRAIT__},
      {""}, {""}, {""}, {""}, {""},
      {"ENDFOREACH", PHP_ENDFOREACH},
      {""},
      {"Private", PHP_PRIVATE},
      {""},
      {"INSTEADOF", PHP_INSTEADOF},
      {""}, {""}, {""},
      {"CALLABLE", PHP_CALLABLE},
      {""}, {""},
      {"PUBLIC", PHP_PUBLIC},
      {"PRIVATE", PHP_PRIVATE},
      {""}, {""},
      {"ISSET", PHP_ISSET},
      {"HTTP_COOKIE_VARS", PHP_HTTP_COOKIE_VARS},
      {""}, {""}, {""},
      {"IMPLEMENTS", PHP_IMPLEMENTS},
      {""},
      {"__FUNCTION__", PHP___FUNCTION__},
      {""},
      {"Endswitch", PHP_ENDSWITCH},
      {"EndDeclare", PHP_ENDDECLARE},
      {""},
      {"REQUIRE", PHP_REQUIRE},
      {""}, {""},
      {"_POST", PHP__POST},
      {""},
      {"_SERVER", PHP__SERVER},
      {""}, {""},
      {"PRINT", PHP_PRINT},
      {""}, {""}, {""}, {""},
      {"INSTANCEOF", PHP_INSTANCEOF},
      {"Switch", PHP_SWITCH},
      {""}, {""},
      {"CFUNCTION", PHP_CFUNCTION},
      {"Throw", PHP_THROW},
      {""}, {""},
      {"HTTP_ENV_VARS", PHP_HTTP_ENV_VARS},
      {""}, {""}, {""}, {""},
      {"FUNCTION", PHP_FUNCTION},
      {""}, {""},
      {"DEFINE", PHP_DEFINE},
      {"INCLUDE_ONCE", PHP_INCLUDE_ONCE},
      {"CONTINUE", PHP_CONTINUE},
      {""},
      {"TRAIT", PHP_TRAIT},
      {"STATIC", PHP_STATIC},
      {""},
      {"_REQUEST", PHP__REQUEST},
      {""},
      {"CONST", PHP_CONST},
      {""},
      {"OLD_FUNCTION", PHP_OLD_FUNCTION},
      {""}, {""}, {""}, {""}, {""},
      {"ABSTRACT", PHP_ABSTRACT},
      {""},
      {"WHILE", PHP_WHILE},
      {""},
      {"DECLARE", PHP_DECLARE},
      {"HTTP_GET_VARS", PHP_HTTP_GET_VARS},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""},
      {"RETURN", PHP_RETURN},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {"CLASS", PHP_CLASS},
      {""}, {""},
      {"ENDWHILE", PHP_ENDWHILE},
      {"EndSwitch", PHP_ENDSWITCH},
      {"THROW", PHP_THROW},
      {""}, {""}, {""},
      {"NAMESPACE", PHP_NAMESPACE},
      {"YIELD", PHP_YIELD},
      {""}, {""}, {""}, {""}, {""}, {""},
      {"DEFAULT", PHP_DEFAULT},
      {""},
      {"INTERFACE", PHP_INTERFACE},
      {""}, {""},
      {"REQUIRE_ONCE", PHP_REQUIRE_ONCE},
      {"_SESSION", PHP__SESSION},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""},
      {"HTTP_SERVER_VARS", PHP_HTTP_SERVER_VARS},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {"HTTP_POST_VARS", PHP_HTTP_POST_VARS},
      {"HTTP_POST_FILES", PHP_HTTP_POST_FILES},
      {""}, {""}, {""}, {""},
      {"__METHOD__", PHP___METHOD__},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {"HTTP_SESSION_VARS", PHP_HTTP_SESSION_VARS},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""},
      {"ENDDECLARE", PHP_ENDDECLARE},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {"SWITCH", PHP_SWITCH},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""}, {""},
      {"ENDSWITCH", PHP_ENDSWITCH},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {"PROTECTED", PHP_PROTECTED}
    };

  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
    {
      register unsigned int key = php_hash (str, len);

      if (key <= MAX_HASH_VALUE)
        {
          register const char *s = wordlist[key].name;

          if (*str == *s && !strcmp (str + 1, s + 1))
            return &wordlist[key];
        }
    }
  return 0;
}

int
php_reserved_word(const char *str, int len)
{
	struct keyword *keyword;

	keyword = php_lookup(str, len);
	return (keyword && IS_RESERVED_WORD(keyword->token)) ? keyword->token : 0;
}
int
php_reserved_variable(const char *str, int len)
{
	struct keyword *keyword;

	keyword = php_lookup(str, len);
	return (keyword && IS_RESERVED_VARIABLE(keyword->token)) ? keyword->token : 0;
}