Searched refs:token (Results 1 - 25 of 30) sorted by relevance

12

/PHP_TRUNK/ext/tokenizer/
H A Dtokenizer.php18 $token = $tokens[$i]; variable
19 if (is_array($token)) {
20 if ($state == 1 && $token[0] == T_STRING) {
21 $token[1] = preg_replace('!([a-z])([A-Z])!e', '"$1_".strtolower("$2")', $token[1]);
23 } else if ($token[0] == T_FUNCTION) {
26 $chunk = $token[1];
28 $chunk = $token;
H A Dtokenizer.c54 ZEND_ARG_INFO(0, token)
113 zval token; local
130 ZVAL_UNDEF(&token);
131 while ((token_type = lex_scan(&token))) {
152 if (Z_TYPE(token) != IS_UNDEF) {
153 zval_dtor(&token);
154 ZVAL_UNDEF(&token);
188 void on_event(zend_php_scanner_event event, int token, int line) argument
196 if (token == END) break;
197 if (token >
[all...]
/PHP_TRUNK/TSRM/
H A Dtsrm_strtok_r.c19 char *token; local
32 token = s;
43 return token;
52 char *token;
54 token = tsrm_strtok_r(foo, "/\\", &last);
55 while (token) {
56 printf ("Token = '%s'\n", token);
57 token = tsrm_strtok_r(NULL, "/\\", &last);
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_log.c104 int token, test; local
143 token = 0;
160 if (!token && *s == '%') {
161 token = 1;
167 if (token) {
168 token = 0;
409 token = 1;
438 zlog(ZLOG_WARNING, "Invalid token in the access.format (%%%c)", *s);
H A Dfpm_conf.c176 * Expands the '$pool' token in a dynamically allocated string
179 char *token; local
185 while (*value && (token = strstr(*value, "$pool"))) {
187 char *p2 = token + strlen("$pool");
195 token[0] = '\0';
197 /* Build a brand new string with the expanded token */
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_parser.c123 /* Enabling the token table. */
504 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
505 token YYLEX-NUM. */
567 positive, shift that token. If negative, reduce the rule which
766 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
973 /* Copy into YYRESULT an error message about the unexpected token
1193 /* Lookahead token as an internal (translated) token number. */
1222 yychar = YYEMPTY; /* Cause a token to be read. */
1318 lookahead token i
[all...]
H A Dphpdbg_parser.y47 %token T_EVAL "eval"
48 %token T_RUN "run"
49 %token T_SHELL "shell"
50 %token T_IF "if (condition)"
51 %token T_TRUTHY "truthy (true, on, yes or enabled)"
52 %token T_FALSY "falsy (false, off, no or disabled)"
53 %token T_STRING "string (some input, perhaps)"
54 %token T_COLON ": (colon)"
55 %token T_DCOLON ":: (double colon)"
56 %token T_POUN
[all...]
/PHP_TRUNK/Zend/
H A Dzend_highlight.c87 zval token; local
95 ZVAL_UNDEF(&token);
96 while ((token_type=lex_scan(&token))) {
125 ZVAL_UNDEF(&token);
129 if (Z_TYPE(token) == IS_UNDEF) {
149 if (Z_TYPE(token) == IS_STRING) {
159 zend_string_release(Z_STR(token));
163 ZVAL_UNDEF(&token);
175 zval token; local
179 ZVAL_UNDEF(&token);
[all...]
H A Dzend_language_scanner.h54 void (* on_event)(zend_php_scanner_event event, int token, int line);
H A Dzend_language_parser.y89 %token <ast> T_LNUMBER "integer number (T_LNUMBER)"
90 %token <ast> T_DNUMBER "floating-point number (T_DNUMBER)"
91 %token <ast> T_STRING "identifier (T_STRING)"
92 %token <ast> T_VARIABLE "variable (T_VARIABLE)"
93 %token <ast> T_INLINE_HTML
94 %token <ast> T_ENCAPSED_AND_WHITESPACE "quoted-string and whitespace (T_ENCAPSED_AND_WHITESPACE)"
95 %token <ast> T_CONSTANT_ENCAPSED_STRING "quoted-string (T_CONSTANT_ENCAPSED_STRING)"
96 %token <ast> T_STRING_VARNAME "variable name (T_STRING_VARNAME)"
97 %token <ast> T_NUM_STRING "number (T_NUM_STRING)"
99 %token EN
[all...]
H A Dzend_ini_parser.y255 %token TC_SECTION
256 %token TC_RAW
257 %token TC_CONSTANT
258 %token TC_NUMBER
259 %token TC_STRING
260 %token TC_WHITESPACE
261 %token TC_LABEL
262 %token TC_OFFSET
263 %token TC_DOLLAR_CURLY
264 %token TC_VARNAM
[all...]
H A Dzend_language_scanner.l1100 static zend_always_inline int emit_token(int token, int token_line)
1102 if(SCNG(on_event)) SCNG(on_event)(ON_TOKEN, token, token_line);
1104 return token;
1107 #define RETURN_TOKEN(token) return emit_token(token, start_line);
1992 /* Unclosed single quotes; treat similar to double quotes, but without a separate token
H A Dzend_globals.h289 void (* on_event)(zend_php_scanner_event event, int token, int line);
/PHP_TRUNK/ext/phar/
H A Dmakestub.php6 foreach (token_get_all($s) as $token) {
7 if (is_array($token)) {
8 if ($token[0] == T_COMMENT) {
9 $token[1] = '';
11 if ($token[0] == T_WHITESPACE) {
12 $n = str_repeat("\n", substr_count($token[1], "\n"));
13 $token[1] = strlen($n) ? $n : ' ';
15 $news .= $token[1];
17 $news .= $token;
H A Dphar.c1470 * Or scan a phar file for the required __HALT_COMPILER(); ?> token and verify
1561 * Scan an open fp for the required __HALT_COMPILER(); ?> token and verify
1567 const char token[] = "__HALT_COMPILER();"; local
1573 char buffer[1024 + sizeof(token)]; /* a 1024 byte window + the size of the halt_compiler token (moving window) */
1574 const zend_long readsize = sizeof(buffer) - sizeof(token);
1575 const zend_long tokenlen = sizeof(token) - 1;
1589 memset(buffer, 32, sizeof(token));
1715 if (got > 0 && (pos = phar_strnstr(buffer, got + sizeof(token), token, sizeo
[all...]
/PHP_TRUNK/ext/json/
H A Dphp_json_scanner.h29 php_json_ctype *token; /* token position */ member in struct:_php_json_scanner
H A Djson_parser.y55 %token <value> PHP_JSON_T_NUL
56 %token <value> PHP_JSON_T_TRUE
57 %token <value> PHP_JSON_T_FALSE
58 %token <value> PHP_JSON_T_INT
59 %token <value> PHP_JSON_T_DOUBLE
60 %token <value> PHP_JSON_T_STRING
61 %token <value> PHP_JSON_T_ESTRING
62 %token <value> PHP_JSON_T_EOI
63 %token <value> PHP_JSON_T_ERROR
294 int token
[all...]
H A Djson_scanner.re97 s->token = s->cursor;
161 zend_bool bigint = 0, negative = s->token[0] == '-';
162 size_t digits = (size_t) (s->cursor - s->token - negative);
165 int cmp = strncmp((char *) (s->token + negative), LONG_MIN_DIGITS, PHP_JSON_INT_MAX_LENGTH);
174 ZVAL_LONG(&s->value, ZEND_STRTOL((char *) s->token, NULL, 10));
177 ZVAL_STRINGL(&s->value, (char *) s->token, s->cursor - s->token);
180 ZVAL_DOUBLE(&s->value, zend_strtod((char *) s->token, NULL));
185 ZVAL_DOUBLE(&s->value, zend_strtod((char *) s->token, NULL));
H A Djson_parser.tab.c540 /* YYTOKNUM[NUM] -- (External) token number corresponding to the
541 (internal) symbol number NUM (which must be that of a token). */
597 positive, shift that token. If negative, reduce the rule whose
674 /* Error token number */
740 yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
915 about the unexpected token YYTOKEN for the state stack whose top is
945 that there is no unexpected or expected token to report. In that
951 - Of course, the expected token list depends on states to have
956 token list. However, the list is correct for canonical LR with
957 one exception: it will still contain any token tha
1906 int token = php_json_scan(&parser->scanner); local
[all...]
H A Djson_scanner.c98 s->token = s->cursor;
302 zend_bool bigint = 0, negative = s->token[0] == '-';
303 size_t digits = (size_t) (s->cursor - s->token - negative);
306 int cmp = strncmp((char *) (s->token + negative), LONG_MIN_DIGITS, PHP_JSON_INT_MAX_LENGTH);
315 ZVAL_LONG(&s->value, ZEND_STRTOL((char *) s->token, NULL, 10));
318 ZVAL_STRINGL(&s->value, (char *) s->token, s->cursor - s->token);
321 ZVAL_DOUBLE(&s->value, zend_strtod((char *) s->token, NULL));
546 ZVAL_DOUBLE(&s->value, zend_strtod((char *) s->token, NULL));
/PHP_TRUNK/ext/mbstring/
H A Dmbstring.c3896 char *token = NULL; local
3923 if(token && token_pos > 0) {
3924 fld_name = zend_string_init(token, token_pos, 0);
3972 token = (char*)ps;
3979 token = (char*)ps;
3989 if(token && token_pos > 0) {
3990 fld_val = zend_string_init(token, token_pos, 0);
4006 token = (char*)ps;
4032 token = "";
4038 if(token
[all...]
/PHP_TRUNK/ext/intl/locale/
H A Dlocale_methods.c144 * returns the position of next token for lookup
145 * or -1 if no token
146 * strtokr equivalent search for token in reverse direction
157 /* a singleton; so send the position of token before the singleton */
1037 char* token = NULL; local
1055 token = php_strtok_r( key_value , DELIMITER ,&last_ptr);
1061 add_assoc_string( hash_arr, cur_key_name , token);
1063 while( (token = php_strtok_r(NULL , DELIMITER , &last_ptr)) && (strlen(token)>1) ){
1065 add_assoc_string( hash_arr, cur_key_name , token);
1146 char* token = NULL; local
1241 char* token = 0; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dphp_fopen_wrapper.c149 char *p, *token = NULL; local
152 p = php_strtok_r(filterlist, "|", &token);
169 p = php_strtok_r(NULL, "|", &token);
180 char *p, *token, *pathdup; local
368 p = php_strtok_r(pathdup + 1, "/", &token);
377 p = php_strtok_r(NULL, "/", &token);
H A Dstring.c1327 /* {{{ proto string strtok([string str,] string token)
1332 char *token; local
1366 token = ZSTR_VAL(tok);
1367 token_end = token + ZSTR_LEN(tok);
1369 while (token < token_end) {
1370 STRTOK_TABLE(token++) = 1;
1402 token = ZSTR_VAL(tok);
1404 while (token < token_end) {
1405 STRTOK_TABLE(token++) = 0;
5583 php_error_docref(NULL, E_WARNING, "Only a single %%i or %%n token ca
[all...]
/PHP_TRUNK/win32/
H A Dsendmail.c368 char *tempMailTo, *token, *pos1, *pos2; local
421 token = strtok(tempMailTo, ",");
422 while (token != NULL)
424 SMTP_SKIP_SPACE(token);
425 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\r\n"); local
435 token = strtok(NULL, ",");
442 token = strtok(tempMailTo, ",");
443 while (token != NULL)
445 SMTP_SKIP_SPACE(token);
446 FormatEmailAddress(PW32G(mail_buffer), token, "RCP local
476 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\\r\\n"); local
501 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\\r\\n"); local
534 FormatEmailAddress(PW32G(mail_buffer), token, "RCPT TO:<%s>\\r\\n"); local
[all...]

Completed in 56 milliseconds

12