Home
last modified time | relevance | path

Searched refs:token (Results 1 – 25 of 91) sorted by relevance

1234

/PHP-8.0/ext/tokenizer/tests/
H A DPhpToken_methods.phpt25 $token = $tokens[5];
34 var_dump($token->is(T_CLASS));
35 var_dump($token->is('class'));
41 $token->is(3.141);
46 $token->is([3.141]);
51 unset($token->id);
52 unset($token->text);
54 $token->is(T_FUNCTION);
59 $token->is('function');
64 $token->is([T_FUNCTION]);
[all …]
H A DPhpToken_constructor.phpt8 $token = new PhpToken(300, 'function');
9 var_dump($token);
10 $token = new PhpToken(300, 'function', 10);
11 var_dump($token);
12 $token = new PhpToken(300, 'function', 10, 100);
13 var_dump($token);
H A Dbad_character.phpt15 foreach (token_get_all($code) as $token) {
16 if (is_array($token)) {
17 echo token_name($token[0]), " ", strlen($token[1]), "\n";
19 echo $token, "\n";
H A Dbug76991.phpt18 foreach (token_get_all($code) as $token) {
19 if (is_array($token)) {
20 echo token_name($token[0]) . ": " .str_replace("\n", '\n', $token[1]);
22 echo $token;
H A Dphp_tag_only.phpt10 foreach (token_get_all("<?php") as $token) {
11 echo token_name($token[0]), "\n";
14 foreach (token_get_all("Foobar<?php") as $token) {
15 echo token_name($token[0]), "\n";
H A Dphp_tag_only_2.phpt10 foreach (token_get_all("<?php") as $token) {
11 echo token_name($token[0]), "\n";
14 foreach (token_get_all("Foobar<?php") as $token) {
15 echo token_name($token[0]), "\n";
H A Dtoken_get_all_variation19.phpt36 // reconstruct a script (without open/close tags) from the token array
37 foreach ($token_array as $token) {
38 if (is_array($token)) {
39 if (strncmp($token[1], '<?php', 5) == 0) {
42 if (strncmp($token[1], '?>', 2) == 0) {
45 $script .= $token[1];
47 $script .= $token;
H A Dparse_errors.phpt15 foreach (token_get_all($code) as $token) {
16 if (is_array($token)) {
17 echo token_name($token[0]), " ($token[1])\n";
19 echo "$token\n";
H A Dnamespaced_names.phpt15 foreach (PhpToken::tokenize($code) as $token) {
16 echo "{$token->getTokenName()}: \"$token->text\"\n";
H A DPhpToken_extension.phpt23 foreach (MyPhpToken::tokenize($code) as $token) {
24 echo $token->getLoweredText();
26 if ($token->extra !== 123) {
H A Dbug77966.phpt16 foreach ($tokens as $token) {
17 echo "{$token->getTokenName()}: \"$token->text\"\n";
H A Dbug80462.phpt6 foreach (PhpToken::tokenize('<?php $foo = $a?->b();', TOKEN_PARSE) as $token) {
7 echo $token->getTokenName(), "\n";
/PHP-8.0/Zend/
H A Dzend_language_parser.y96 %token <ast> T_INLINE_HTML
180 %token END 0 "end of file"
181 %token T_ATTRIBUTE "'#['"
182 %token T_PLUS_EQUAL "'+='"
183 %token T_MINUS_EQUAL "'-='"
202 %token T_SPACESHIP "'<=>'"
203 %token T_SL "'<<'"
204 %token T_SR "'>>'"
205 %token T_INC "'++'"
206 %token T_DEC "'--'"
[all …]
H A Dzend_highlight.c86 zval token; in zend_highlight() local
123 ZVAL_UNDEF(&token); in zend_highlight()
147 if (Z_TYPE(token) == IS_STRING) { in zend_highlight()
157 zval_ptr_dtor_str(&token); in zend_highlight()
161 ZVAL_UNDEF(&token); in zend_highlight()
176 zval token; in zend_strip() local
190 ZVAL_UNDEF(&token); in zend_strip()
201 ZVAL_UNDEF(&token); in zend_strip()
209 if (Z_TYPE(token) == IS_STRING) { in zend_strip()
220 zval_ptr_dtor_str(&token); in zend_strip()
[all …]
H A Dzend_ini_parser.y287 %token TC_SECTION
288 %token TC_RAW
289 %token TC_CONSTANT
290 %token TC_NUMBER
291 %token TC_STRING
293 %token TC_LABEL
294 %token TC_OFFSET
296 %token TC_VARNAME
298 %token BOOL_TRUE
299 %token BOOL_FALSE
[all …]
/PHP-8.0/sapi/phpdbg/
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)"
49 %token T_COLON ": (colon)"
52 %token T_SEPARATOR "# (pound sign)"
54 %token T_DIGITS "digits (numbers)"
55 %token T_LITERAL "literal (string)"
56 %token T_ADDR "address"
57 %token T_OPCODE "opcode"
[all …]
/PHP-8.0/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;
/PHP-8.0/ext/standard/tests/strings/
H A Dstrtok_basic.phpt13 $token = ' ().';
16 echo "\nThe token string is:\n\"$token\"\n";
20 var_dump( strtok($str, $token) );
24 var_dump( strtok($token) );
35 The token string is:
H A Dstrtok_variation6.phpt6 * Testing strtok() : with invalid escape sequences in token
9 echo "*** Testing strtok() : with invalid escape sequences in token ***\n";
27 // when supplied with different string and token values
32 foreach( $token_array as $token ) {
33 var_dump( strtok($string, $token) );
35 var_dump( strtok($token) );
46 *** Testing strtok() : with invalid escape sequences in token ***
/PHP-8.0/ext/date/tests/
H A D005.phpt19 Warning: idate(): Unrecognized date format token in %s on line %d
25 Warning: idate(): Unrecognized date format token in %s on line %d
29 Warning: idate(): Unrecognized date format token in %s on line %d
32 Warning: idate(): Unrecognized date format token in %s on line %d
/PHP-8.0/ext/json/
H A Djson_parser.y53 %token <value> PHP_JSON_T_NUL
54 %token <value> PHP_JSON_T_TRUE
55 %token <value> PHP_JSON_T_FALSE
56 %token <value> PHP_JSON_T_INT
57 %token <value> PHP_JSON_T_DOUBLE
58 %token <value> PHP_JSON_T_STRING
59 %token <value> PHP_JSON_T_ESTRING
60 %token PHP_JSON_T_EOI
61 %token PHP_JSON_T_ERROR
259 int token = php_json_scan(&parser->scanner); in php_json_yylex() local
[all …]
/PHP-8.0/ext/tokenizer/
H A Dtokenizer.c318 zval token; in add_token() local
321 ZVAL_OBJ(&token, obj); in add_token()
338 array_init(&token); in add_token()
352 zval token; in tokenize() local
374 if (Z_TYPE(token) != IS_UNDEF) { in tokenize()
375 zval_ptr_dtor_nogc(&token); in tokenize()
376 ZVAL_UNDEF(&token); in tokenize()
447 if (token == END) break; in on_event()
450 token = T_CLOSE_TAG; in on_event()
452 token = T_OPEN_TAG_WITH_ECHO; in on_event()
[all …]
/PHP-8.0/win32/
H A Dsendmail.c391 char *tempMailTo, *token, *token_state; in SendText() local
446 while (token != NULL) in SendText()
448 SMTP_SKIP_SPACE(token); in SendText()
467 while (token != NULL) in SendText()
469 SMTP_SKIP_SPACE(token); in SendText()
507 while (token != NULL) in SendText()
509 SMTP_SKIP_SPACE(token); in SendText()
532 while (token != NULL) in SendText()
534 SMTP_SKIP_SPACE(token); in SendText()
580 while (token != NULL) in SendText()
[all …]
/PHP-8.0/ext/standard/tests/serialize/
H A Dbug65481.phpt33 $token = new Token;
34 $token = serialize($token);
/PHP-8.0/ext/opcache/tests/
H A Dbug76477.phpt14 $token = "ABC";
15 $lengthBytes = strlenb($token);

Completed in 123 milliseconds

1234