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

/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.c1471 * Or scan a phar file for the required __HALT_COMPILER(); ?> token and verify
1562 * Scan an open fp for the required __HALT_COMPILER(); ?> token and verify
1568 const char token[] = "__HALT_COMPILER();"; local
1574 char buffer[1024 + sizeof(token)]; /* a 1024 byte window + the size of the halt_compiler token (moving window) */
1575 const zend_long readsize = sizeof(buffer) - sizeof(token);
1576 const zend_long tokenlen = sizeof(token) - 1;
1590 memset(buffer, 32, sizeof(token));
1716 if (got > 0 && (pos = phar_strnstr(buffer, got + sizeof(token), token, sizeo
[all...]
/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.c46 ZEND_ARG_INFO(0, token)
106 zval token; local
115 ZVAL_NULL(&token);
116 while ((token_type = lex_scan(&token))) {
147 if (destroy && Z_TYPE(token) != IS_NULL) {
148 zval_dtor(&token);
150 ZVAL_NULL(&token);
/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/ext/sqlite3/libsqlite/
H A Dsqlite3.c2126 ** complete if it ends with a semicolon token and is not a prefix of a
2129 ** independent tokens (they are part of the token in which they are
9278 void *token; /* id that may be used to recursive triggers */ member in struct:SubProgram
11358 ** Each token coming out of the lexer is an instance of
11366 const char *z; /* Text of the token. Not NULL-terminated! */
11367 unsigned int n; /* Number of characters in this token */
11434 ** Expr.op is the opcode. The integer parser token codes are reused
11441 ** or TK_STRING), then Expr.token contains the text of the SQL literal. If
11442 ** the expression is a variable (TK_VARIABLE), then Expr.token contains the
11444 ** then Expr.token contain
14161 void *token; /* Copy of SubProgram.token */ member in struct:VdbeFrame
85039 int token; local
85110 int token; /* Type of token */ local
85160 int token; local
124691 u8 token; /* Value of the next token */ local
[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_indent.c52 zval token; local
62 ZVAL_UNDEF(&token);
63 while ((token_type=lex_scan(&token))) {
69 ZVAL_UNDEF(&token);
81 if (Z_TYPE(token) == IS_UNDEF) {
134 if (Z_TYPE(token) == IS_STRING) {
141 zend_string_release(Z_STR(token));
145 ZVAL_UNDEF(&token);
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_parser.y94 %token <ast> T_LNUMBER "integer number (T_LNUMBER)"
95 %token <ast> T_DNUMBER "floating-point number (T_DNUMBER)"
96 %token <ast> T_STRING "identifier (T_STRING)"
97 %token <ast> T_VARIABLE "variable (T_VARIABLE)"
98 %token <ast> T_INLINE_HTML
99 %token <ast> T_ENCAPSED_AND_WHITESPACE "quoted-string and whitespace (T_ENCAPSED_AND_WHITESPACE)"
100 %token <ast> T_CONSTANT_ENCAPSED_STRING "quoted-string (T_CONSTANT_ENCAPSED_STRING)"
101 %token <ast> T_STRING_VARNAME "variable name (T_STRING_VARNAME)"
102 %token <ast> T_NUM_STRING "number (T_NUM_STRING)"
104 %token EN
[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 */
1042 char* token = NULL; local
1060 token = php_strtok_r( key_value , DELIMITER ,&last_ptr);
1066 add_assoc_string( hash_arr, cur_key_name , token);
1068 while( (token = php_strtok_r(NULL , DELIMITER , &last_ptr)) && (strlen(token)>1) ){
1070 add_assoc_string( hash_arr, cur_key_name , token);
1151 char* token = NULL; local
1248 char* token = 0; local
[all...]
/PHP_TRUNK/ext/mbstring/
H A Dmbstring.c3893 char *token; local
3920 fld_name = zend_string_init(token, token_pos, 0);
3968 token = (char*)ps;
3975 token = (char*)ps;
3985 fld_val = zend_string_init(token, token_pos, 0);
4000 token = (char*)ps;
4026 token = "";
4032 fld_val = zend_string_init(token, 0, 0);
/PHP_TRUNK/ext/pgsql/
H A Dpgsql.c6442 char *table_copy, *escaped, *token, *tmp; local
6447 token = php_strtok_r(table_copy, ".", &tmp);
6448 len = strlen(token);
6449 if (_php_pgsql_detect_identifier_escape(token, len) == SUCCESS) {
6450 smart_str_appendl(querystr, token, len);
6452 escaped = PGSQLescapeIdentifier(pg_link, token, len);
/PHP_TRUNK/ext/session/
H A Dsession.c293 zval *token; local
301 (token = zend_hash_str_find(Z_ARRVAL_P(array), "REMOTE_ADDR", sizeof("REMOTE_ADDR") - 1)) &&
302 Z_TYPE_P(token) == IS_STRING
304 remote_addr = Z_STRVAL_P(token);
/PHP_TRUNK/ext/standard/
H A Dphp_fopen_wrapper.c149 char *p, *token; local
152 p = php_strtok_r(filterlist, "|", &token);
169 p = php_strtok_r(NULL, "|", &token);
180 char *p, *token, *pathdup; local
355 p = php_strtok_r(pathdup + 1, "/", &token);
364 p = php_strtok_r(NULL, "/", &token);
H A Dbasic_functions.c2184 ZEND_ARG_INFO(0, token)
H A Dstring.c1254 /* {{{ proto string strtok([string str,] string token)
1259 char *token; local
1285 token = tok->val;
1286 token_end = token + tok->len;
1288 while (token < token_end) {
1289 STRTOK_TABLE(token++) = 1;
1321 token = tok->val;
1323 while (token < token_end) {
1324 STRTOK_TABLE(token++) = 0;
5319 php_error_docref(NULL, E_WARNING, "Only a single %%i or %%n token ca
[all...]
/PHP_TRUNK/sapi/fpm/fpm/
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 */
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);
/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]);
974 /* Copy into YYRESULT an error message about the unexpected token
1195 /* Lookahead token as an internal (translated) token number. */
1224 yychar = YYEMPTY; /* Cause a token to be read. */
1320 lookahead token i
[all...]
H A Dphpdbg_parser.y42 %token T_EVAL "eval"
43 %token T_RUN "run"
44 %token T_SHELL "shell"
45 %token T_IF "if (condition)"
46 %token T_TRUTHY "truthy (true, on, yes or enabled)"
47 %token T_FALSY "falsy (false, off, no or disabled)"
48 %token T_STRING "string (some input, perhaps)"
49 %token T_COLON ": (colon)"
50 %token T_DCOLON ":: (double colon)"
51 %token T_POUN
[all...]
/PHP_TRUNK/win32/
H A Dsendmail.c390 char *tempMailTo, *token, *pos1, *pos2; local
439 token = strtok(tempMailTo, ",");
440 while (token != NULL)
442 SMTP_SKIP_SPACE(token);
443 FormatEmailAddress(Buffer, token, "RCPT TO:<%s>\r\n");
453 token = strtok(NULL, ",");
460 token = strtok(tempMailTo, ",");
461 while (token != NULL)
463 SMTP_SKIP_SPACE(token);
464 FormatEmailAddress(Buffer, token, "RCP
[all...]

Completed in 164 milliseconds