Home
last modified time | relevance | path

Searched refs:token_name (Results 1 – 17 of 17) sorted by relevance

/PHP-8.1/ext/tokenizer/tests/
H A D001.phpt2 token_name()
11 echo token_name(T_INCLUDE), "\n";
13 echo token_name(T_EVAL), "\n";
14 echo token_name(T_REQUIRE), "\n";
19 echo token_name(T_PRINT), "\n";
39 echo token_name(T_SL), "\n";
40 echo token_name(T_SR), "\n";
41 echo token_name(T_INC), "\n";
42 echo token_name(T_DEC), "\n";
52 echo token_name(T_IF), "\n";
[all …]
H A Dbug67395.phpt2 Bug 67395: token_name() does not return name for T_POW and T_POW_EQUAL token
9 var_dump(token_name($powToken));
12 var_dump(token_name($powEqualToken));
H A Dphp_tag_only.phpt11 echo token_name($token[0]), "\n";
15 echo token_name($token[0]), "\n";
H A Dphp_tag_only_2.phpt11 echo token_name($token[0]), "\n";
15 echo token_name($token[0]), "\n";
H A Dinvalid_octal_dnumber.phpt7 echo token_name(token_get_all('<?php 0177777777777777777777787')[1][0]), "\n";
H A Dattributes.phpt11 var_dump(token_name(T_ATTRIBUTE));
H A Dbad_character.phpt17 echo token_name($token[0]), " ", strlen($token[1]), "\n";
H A Dbug76437.phpt15 echo token_name($open_tag1[0]), ": \"$open_tag1[1]\" on line $open_tag1[2]\n";
H A Dbug76991.phpt20 echo token_name($token[0]) . ": " .str_replace("\n", '\n', $token[1]);
H A Dparse_errors.phpt17 echo token_name($token[0]), " ($token[1])\n";
H A Dtoken_get_all_TOKEN_PARSE_002.phpt17 if(($t = token_name($tk[0])) == 'T_WHITESPACE') return;
H A Dtoken_get_all_TOKEN_PARSE_001.phpt24 if(($t = token_name($tk[0])) == 'T_WHITESPACE') return;
H A Dtoken_get_all_heredoc_nowdoc.phpt14 echo "Line {$token[2]}: ", token_name($token[0]), " ('{$token[1]}')\n";
/PHP-8.1/ext/tokenizer/
H A Dtokenizer.c230 const char *token_name = get_token_type_name(Z_LVAL_P(id_zval)); in PHP_METHOD() local
231 if (!token_name) { in PHP_METHOD()
235 RETURN_STRING(token_name); in PHP_METHOD()
538 PHP_FUNCTION(token_name) in PHP_FUNCTION() argument
546 const char *token_name = get_token_type_name(type); in PHP_FUNCTION() local
547 if (!token_name) { in PHP_FUNCTION()
548 token_name = "UNKNOWN"; in PHP_FUNCTION()
550 RETURN_STRING(token_name); in PHP_FUNCTION()
H A Dphp_tokenizer.h38 PHP_FUNCTION(token_name);
H A Dtokenizer.stub.php7 function token_name(int $id): string {} function
H A Dtokenizer_arginfo.h37 ZEND_FUNCTION(token_name);
48 ZEND_FE(token_name, arginfo_token_name)

Completed in 29 milliseconds