/* */
This source file includes following definitions.
- php_hash
- php_lookup
- php_reserved_word
- php_reserved_variable
1 /* ANSI-C code produced by gperf version 3.0.4 */
2 /* Command-line: gperf --language=ANSI-C --struct-type --slot-name=name --hash-fn-name=php_hash --lookup-fn-name=php_lookup */
3 /* Computed positions: -k'1-2,4-6,9' */
4
5 #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
6 && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
7 && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
8 && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
9 && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
10 && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
11 && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
12 && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
13 && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
14 && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
15 && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
16 && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
17 && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
18 && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
19 && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
20 && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
21 && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
22 && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
23 && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
24 && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
25 && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
26 && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
27 && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
28 /* The character set is not based on ISO-646. */
29 #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
30 #endif
31
32
33 #include "strmake.h"
34 #define START_VARIABLE 1001
35 #define START_WORD 2001
36 #define START_SHARP 3001
37 #define START_YACC 4001
38 #define IS_RESERVED_WORD(a) ((a) >= START_WORD)
39 #define IS_RESERVED_VARIABLE(a) ((a) >= START_VARIABLE && (a) < START_WORD)
40 #define IS_RESERVED_SHARP(a) ((a) >= START_SHARP && (a) < START_YACC)
41 #define IS_RESERVED_YACC(a) ((a) >= START_YACC)
42
43 #define PHP___FILE__ 2001
44 #define PHP___LINE__ 2002
45 #define PHP___FUNCTION__ 2003
46 #define PHP___CLASS__ 2004
47 #define PHP_AND 2005
48 #define PHP_ARRAY 2006
49 #define PHP_AS 2007
50 #define PHP_BREAK 2008
51 #define PHP_CASE 2009
52 #define PHP_CFUNCTION 2010
53 #define PHP_CLASS 2011
54 #define PHP_CONST 2012
55 #define PHP_CONTINUE 2013
56 #define PHP_DECLARE 2014
57 #define PHP_DEFAULT 2015
58 #define PHP_DEFINE 2016
59 #define PHP_DO 2017
60 #define PHP_DIE 2018
61 #define PHP_EACH 2019
62 #define PHP_ECHO 2020
63 #define PHP_ELSE 2021
64 #define PHP_ELSEIF 2022
65 #define PHP_EMPTY 2023
66 #define PHP_ENDDECLARE 2024
67 #define PHP_ENDFOR 2025
68 #define PHP_ENDFOREACH 2026
69 #define PHP_ENDIF 2027
70 #define PHP_ENDWHILE 2028
71 #define PHP_ENDSWITCH 2029
72 #define PHP_EVAL 2030
73 #define PHP_EXIT 2031
74 #define PHP_FAILURE 2032
75 #define PHP_FALSE 2033
76 #define PHP_FOR 2034
77 #define PHP_FOREACH 2035
78 #define PHP_FUNCTION 2036
79 #define PHP_GLOBAL 2037
80 #define PHP_HEADER 2038
81 #define PHP_LIST 2039
82 #define PHP_IF 2040
83 #define PHP_INCLUDE 2041
84 #define PHP_INCLUDE_ONCE 2042
85 #define PHP_IS_ARRAY 2043
86 #define PHP_IS_SET 2044
87 #define PHP_NEW 2045
88 #define PHP_OLD_FUNCTION 2046
89 #define PHP_OR 2047
90 #define PHP_PRINT 2048
91 #define PHP_PRINTF 2049
92 #define PHP_RETURN 2050
93 #define PHP_REQUIRE 2051
94 #define PHP_REQUIRE_ONCE 2052
95 #define PHP_SETCOOKIE 2053
96 #define PHP_SUCCESS 2054
97 #define PHP_STATIC 2055
98 #define PHP_SWITCH 2056
99 #define PHP_TRUE 2057
100 #define PHP_VAR 2058
101 #define PHP_WHILE 2059
102 #define PHP_UNSET 2060
103 #define PHP_XOR 2061
104 #define PHP_GLOBALS 1001
105 #define PHP_HTTP_COOKIE_VARS 1002
106 #define PHP_HTTP_ENV_VARS 1003
107 #define PHP_HTTP_GET_VARS 1004
108 #define PHP_HTTP_POST_FILES 1005
109 #define PHP_HTTP_POST_VARS 1006
110 #define PHP_HTTP_SERVER_VARS 1007
111 #define PHP_HTTP_SESSION_VARS 1008
112 #define PHP__COOKIE 1009
113 #define PHP__ENV 1010
114 #define PHP__FILES 1011
115 #define PHP__GET 1012
116 #define PHP__POST 1013
117 #define PHP__REQUEST 1014
118 #define PHP__SERVER 1015
119 #define PHP__SESSION 1016
120 struct keyword { char *name; int token; };
121
122 #define TOTAL_KEYWORDS 206
123 #define MIN_WORD_LENGTH 2
124 #define MAX_WORD_LENGTH 17
125 #define MIN_HASH_VALUE 2
126 #define MAX_HASH_VALUE 602
127 /* maximum key range = 601, duplicates = 0 */
128
129 #ifdef __GNUC__
130 __inline
131 #else
132 #ifdef __cplusplus
133 inline
134 #endif
135 #endif
136 static unsigned int
137 php_hash (register const char *str, register unsigned int len)
138 {
139 static unsigned short asso_values[] =
140 {
141 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
142 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
143 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
144 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
145 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
146 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
147 603, 603, 603, 603, 603, 70, 30, 40, 90, 50,
148 65, 15, 30, 115, 603, 5, 40, 0, 30, 40,
149 70, 0, 165, 50, 10, 55, 65, 35, 150, 0,
150 603, 603, 603, 603, 603, 55, 603, 30, 35, 0,
151 15, 5, 0, 5, 35, 0, 603, 40, 30, 95,
152 0, 0, 65, 603, 10, 0, 15, 25, 110, 140,
153 115, 10, 603, 603, 603, 603, 603, 603, 603, 603,
154 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
155 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
156 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
157 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
158 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
159 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
160 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
161 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
162 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
163 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
164 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
165 603, 603, 603, 603, 603, 603, 603, 603, 603, 603,
166 603, 603, 603, 603, 603, 603
167 };
168 register int hval = len;
169
170 switch (hval)
171 {
172 default:
173 hval += asso_values[(unsigned char)str[8]];
174 /*FALLTHROUGH*/
175 case 8:
176 case 7:
177 case 6:
178 hval += asso_values[(unsigned char)str[5]];
179 /*FALLTHROUGH*/
180 case 5:
181 hval += asso_values[(unsigned char)str[4]];
182 /*FALLTHROUGH*/
183 case 4:
184 hval += asso_values[(unsigned char)str[3]];
185 /*FALLTHROUGH*/
186 case 3:
187 case 2:
188 hval += asso_values[(unsigned char)str[1]];
189 /*FALLTHROUGH*/
190 case 1:
191 hval += asso_values[(unsigned char)str[0]];
192 break;
193 }
194 return hval;
195 }
196
197 #ifdef __GNUC__
198 __inline
199 #if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
200 __attribute__ ((__gnu_inline__))
201 #endif
202 #endif
203 struct keyword *
204 php_lookup (register const char *str, register unsigned int len)
205 {
206 static struct keyword wordlist[] =
207 {
208 {""}, {""},
209 {"if", PHP_IF},
210 {"for", PHP_FOR},
211 {""}, {""}, {""}, {""},
212 {"new", PHP_NEW},
213 {"echo", PHP_ECHO},
214 {"endif", PHP_ENDIF},
215 {""},
216 {"or", PHP_OR},
217 {""}, {""}, {""}, {""},
218 {"do", PHP_DO},
219 {"die", PHP_DIE},
220 {"setcookie", PHP_SETCOOKIE},
221 {"const", PHP_CONST},
222 {"endfor", PHP_ENDFOR},
223 {""},
224 {"continue", PHP_CONTINUE},
225 {"cfunction", PHP_CFUNCTION},
226 {"endforeach", PHP_ENDFOREACH},
227 {"is_set", PHP_IS_SET},
228 {""}, {""},
229 {"True", PHP_TRUE},
230 {""},
231 {"define", PHP_DEFINE},
232 {"as", PHP_AS},
233 {"and", PHP_AND},
234 {"true", PHP_TRUE},
235 {"class", PHP_CLASS},
236 {"static", PHP_STATIC},
237 {"success", PHP_SUCCESS},
238 {"New", PHP_NEW},
239 {"case", PHP_CASE},
240 {"false", PHP_FALSE},
241 {""},
242 {"foreach", PHP_FOREACH},
243 {""},
244 {"else", PHP_ELSE},
245 {"enddeclare", PHP_ENDDECLARE},
246 {"elseif", PHP_ELSEIF},
247 {""},
248 {"function", PHP_FUNCTION},
249 {"list", PHP_LIST},
250 {"unset", PHP_UNSET},
251 {""},
252 {"Or", PHP_OR},
253 {""},
254 {"Echo", PHP_ECHO},
255 {"Endif", PHP_ENDIF},
256 {"return", PHP_RETURN},
257 {"require", PHP_REQUIRE},
258 {"is_array", PHP_IS_ARRAY},
259 {"List", PHP_LIST},
260 {"Const", PHP_CONST},
261 {""},
262 {"require_once", PHP_REQUIRE_ONCE},
263 {"Continue", PHP_CONTINUE},
264 {"Cfunction", PHP_CFUNCTION},
265 {"EMPTY", PHP_EMPTY},
266 {"Endfor", PHP_ENDFOR},
267 {""},
268 {"For", PHP_FOR},
269 {"Setcookie", PHP_SETCOOKIE},
270 {"Endforeach", PHP_ENDFOREACH},
271 {"Header", PHP_HEADER},
272 {"As", PHP_AS},
273 {"And", PHP_AND},
274 {"each", PHP_EACH},
275 {"Class", PHP_CLASS},
276 {"header", PHP_HEADER},
277 {"include", PHP_INCLUDE},
278 {""},
279 {"Case", PHP_CASE},
280 {"Unset", PHP_UNSET},
281 {""},
282 {"include_once", PHP_INCLUDE_ONCE},
283 {"NEW", PHP_NEW},
284 {"_GET", PHP__GET},
285 {"array", PHP_ARRAY},
286 {"Static", PHP_STATIC},
287 {"Success", PHP_SUCCESS},
288 {""},
289 {"Else", PHP_ELSE},
290 {"Enddeclare", PHP_ENDDECLARE},
291 {"Elseif", PHP_ELSEIF},
292 {"Do", PHP_DO},
293 {"Die", PHP_DIE},
294 {""},
295 {"print", PHP_PRINT},
296 {"printf", PHP_PRINTF},
297 {"declare", PHP_DECLARE},
298 {"Var", PHP_VAR},
299 {""},
300 {"Print", PHP_PRINT},
301 {"Printf", PHP_PRINTF},
302 {"failure", PHP_FAILURE},
303 {"AND", PHP_AND},
304 {""},
305 {"False", PHP_FALSE},
306 {"Define", PHP_DEFINE},
307 {"Foreach", PHP_FOREACH},
308 {"FOR", PHP_FOR},
309 {"SetCookie", PHP_SETCOOKIE},
310 {"While", PHP_WHILE},
311 {""},
312 {"default", PHP_DEFAULT},
313 {"Function", PHP_FUNCTION},
314 {""},
315 {"Break", PHP_BREAK},
316 {""},
317 {"If", PHP_IF},
318 {"xor", PHP_XOR},
319 {"Each", PHP_EACH},
320 {"break", PHP_BREAK},
321 {""},
322 {"AS", PHP_AS},
323 {""}, {""},
324 {"Array", PHP_ARRAY},
325 {""}, {""},
326 {"EndWhile", PHP_ENDWHILE},
327 {"CFunction", PHP_CFUNCTION},
328 {"empty", PHP_EMPTY},
329 {"EndFor", PHP_ENDFOR},
330 {"DO", PHP_DO},
331 {""},
332 {"ECHO", PHP_ECHO},
333 {"EndForeach", PHP_ENDFOREACH},
334 {"global", PHP_GLOBAL},
335 {"old_function", PHP_OLD_FUNCTION},
336 {"VAR", PHP_VAR},
337 {"exit", PHP_EXIT},
338 {""},
339 {"Is_set", PHP_IS_SET},
340 {""},
341 {"var", PHP_VAR},
342 {"ELSE", PHP_ELSE},
343 {"CONST", PHP_CONST},
344 {"Global", PHP_GLOBAL},
345 {""}, {""},
346 {"eval", PHP_EVAL},
347 {"UNSET", PHP_UNSET},
348 {""},
349 {"ForEach", PHP_FOREACH},
350 {"Xor", PHP_XOR},
351 {"EACH", PHP_EACH},
352 {""}, {""}, {""}, {""},
353 {"EVAL", PHP_EVAL},
354 {"WHILE", PHP_WHILE},
355 {""}, {""}, {""},
356 {"CASE", PHP_CASE},
357 {"EndDeclare", PHP_ENDDECLARE},
358 {""},
359 {"Failure", PHP_FAILURE},
360 {""},
361 {"LIST", PHP_LIST},
362 {"EndIf", PHP_ENDIF},
363 {"SWITCH", PHP_SWITCH},
364 {"Declare", PHP_DECLARE},
365 {"Is_array", PHP_IS_ARRAY},
366 {"_ENV", PHP__ENV},
367 {"Empty", PHP_EMPTY},
368 {""},
369 {"Old_function", PHP_OLD_FUNCTION},
370 {""}, {""}, {""}, {""},
371 {"IF", PHP_IF},
372 {""},
373 {"Exit", PHP_EXIT},
374 {"CLASS", PHP_CLASS},
375 {""},
376 {"Default", PHP_DEFAULT},
377 {"endwhile", PHP_ENDWHILE},
378 {"endswitch", PHP_ENDSWITCH},
379 {"_POST", PHP__POST},
380 {"Is_Set", PHP_IS_SET},
381 {"Include", PHP_INCLUDE},
382 {"XOR", PHP_XOR},
383 {"Eval", PHP_EVAL},
384 {""},
385 {"switch", PHP_SWITCH},
386 {"Include_once", PHP_INCLUDE_ONCE},
387 {""}, {""}, {""},
388 {"GLOBAL", PHP_GLOBAL},
389 {"GLOBALS", PHP_GLOBALS},
390 {""}, {""}, {""},
391 {"ElseIf", PHP_ELSEIF},
392 {"OR", PHP_OR},
393 {"DIE", PHP_DIE},
394 {""}, {""},
395 {"Return", PHP_RETURN},
396 {"Require", PHP_REQUIRE},
397 {"Is_Array", PHP_IS_ARRAY},
398 {"EXIT", PHP_EXIT},
399 {"while", PHP_WHILE},
400 {""},
401 {"Require_once", PHP_REQUIRE_ONCE},
402 {""}, {""}, {""}, {""}, {""}, {""},
403 {"CFUNCTION", PHP_CFUNCTION},
404 {""},
405 {"HTTP_COOKIE_VARS", PHP_HTTP_COOKIE_VARS},
406 {""}, {""},
407 {"TRUE", PHP_TRUE},
408 {""},
409 {"STATIC", PHP_STATIC},
410 {""},
411 {"Endwhile", PHP_ENDWHILE},
412 {"Endswitch", PHP_ENDSWITCH},
413 {""}, {""},
414 {"Include_Once", PHP_INCLUDE_ONCE},
415 {""}, {""},
416 {"FALSE", PHP_FALSE},
417 {""},
418 {"Old_Function", PHP_OLD_FUNCTION},
419 {"CONTINUE", PHP_CONTINUE},
420 {""}, {""},
421 {"Switch", PHP_SWITCH},
422 {""},
423 {"HTTP_GET_VARS", PHP_HTTP_GET_VARS},
424 {""}, {""}, {""},
425 {"SUCCESS", PHP_SUCCESS},
426 {""}, {""}, {""}, {""},
427 {"Require_Once", PHP_REQUIRE_ONCE},
428 {""},
429 {"HTTP_POST_VARS", PHP_HTTP_POST_VARS},
430 {"HTTP_POST_FILES", PHP_HTTP_POST_FILES},
431 {""},
432 {"_COOKIE", PHP__COOKIE},
433 {""}, {""},
434 {"ENDIF", PHP_ENDIF},
435 {"_FILES", PHP__FILES},
436 {""},
437 {"ENDWHILE", PHP_ENDWHILE},
438 {""}, {""}, {""},
439 {"FOREACH", PHP_FOREACH},
440 {""}, {""},
441 {"BREAK", PHP_BREAK},
442 {""},
443 {"OLD_FUNCTION", PHP_OLD_FUNCTION},
444 {""},
445 {"SETCOOKIE", PHP_SETCOOKIE},
446 {"PRINT", PHP_PRINT},
447 {"IS_SET", PHP_IS_SET},
448 {"HTTP_SESSION_VARS", PHP_HTTP_SESSION_VARS},
449 {"HTTP_ENV_VARS", PHP_HTTP_ENV_VARS},
450 {"EndSwitch", PHP_ENDSWITCH},
451 {""}, {""},
452 {"__FUNCTION__", PHP___FUNCTION__},
453 {""}, {""}, {""}, {""}, {""},
454 {"FUNCTION", PHP_FUNCTION},
455 {""}, {""},
456 {"HTTP_SERVER_VARS", PHP_HTTP_SERVER_VARS},
457 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
458 {""}, {""}, {""}, {""},
459 {"ARRAY", PHP_ARRAY},
460 {""},
461 {"DEFAULT", PHP_DEFAULT},
462 {"__LINE__", PHP___LINE__},
463 {""}, {""}, {""}, {""}, {""},
464 {"ENDSWITCH", PHP_ENDSWITCH},
465 {""}, {""}, {""},
466 {"__FILE__", PHP___FILE__},
467 {""}, {""},
468 {"ELSEIF", PHP_ELSEIF},
469 {""},
470 {"_SESSION", PHP__SESSION},
471 {""}, {""}, {""}, {""},
472 {"_REQUEST", PHP__REQUEST},
473 {"__CLASS__", PHP___CLASS__},
474 {""}, {""},
475 {"INCLUDE", PHP_INCLUDE},
476 {""}, {""}, {""},
477 {"DEFINE", PHP_DEFINE},
478 {""}, {""}, {""}, {""},
479 {"PRINTF", PHP_PRINTF},
480 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
481 {"ENDFOR", PHP_ENDFOR},
482 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
483 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
484 {""}, {""}, {""}, {""}, {""}, {""}, {""},
485 {"INCLUDE_ONCE", PHP_INCLUDE_ONCE},
486 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
487 {"HEADER", PHP_HEADER},
488 {"_SERVER", PHP__SERVER},
489 {""}, {""}, {""}, {""}, {""}, {""}, {""},
490 {"ENDFOREACH", PHP_ENDFOREACH},
491 {""},
492 {"FAILURE", PHP_FAILURE},
493 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
494 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
495 {""},
496 {"DECLARE", PHP_DECLARE},
497 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
498 {""}, {""}, {""},
499 {"ENDDECLARE", PHP_ENDDECLARE},
500 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
501 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
502 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
503 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
504 {"RETURN", PHP_RETURN},
505 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
506 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
507 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
508 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
509 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
510 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
511 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
512 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
513 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
514 {""}, {""}, {""}, {""},
515 {"REQUIRE", PHP_REQUIRE},
516 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
517 {""}, {""}, {""}, {""}, {""}, {""},
518 {"IS_ARRAY", PHP_IS_ARRAY},
519 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
520 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
521 {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
522 {""},
523 {"REQUIRE_ONCE", PHP_REQUIRE_ONCE}
524 };
525
526 if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
527 {
528 register int key = php_hash (str, len);
529
530 if (key <= MAX_HASH_VALUE && key >= 0)
531 {
532 register const char *s = wordlist[key].name;
533
534 if (*str == *s && !strcmp (str + 1, s + 1))
535 return &wordlist[key];
536 }
537 }
538 return 0;
539 }
540
541 int
542 php_reserved_word(const char *str, int len)
543 {
544 struct keyword *keyword;
545
546 keyword = php_lookup(str, len);
547 return (keyword && IS_RESERVED_WORD(keyword->token)) ? keyword->token : 0;
548 }
549 int
550 php_reserved_variable(const char *str, int len)
551 {
552 struct keyword *keyword;
553
554 keyword = php_lookup(str, len);
555 return (keyword && IS_RESERVED_VARIABLE(keyword->token)) ? keyword->token : 0;
556 }
/* */