Home
last modified time | relevance | path

Searched refs:tokens (Results 1 – 25 of 42) sorted by relevance

12

/PHP-8.0/ext/tokenizer/tests/
H A DPhpToken_toString.phpt6 $tokens = PhpToken::tokenize('<?php echo "Hello ". $what;');
7 var_dump(implode($tokens));
9 var_dump($tokens[0] instanceof Stringable);
10 var_dump((string) $tokens[0]);
11 var_dump($tokens[0]->__toString());
H A Dattributes.phpt2 Attributes are exposed as tokens.
6 $tokens = token_get_all('<?php #[A1(1, 2)] class C1 { }');
8 $attr = $tokens[1];
13 $class = $tokens[2];
H A Dtoken_get_all_variation14.phpt9 * unknown tokens - T_UNKNOWN(307)
12 echo "*** Testing token_get_all() : with invalid/unknown tokens ***\n";
14 // with valid php tags and invalid tokens
15 echo "-- with valid PHP tags & invlid tokens --\n";
25 echo "-- with invlalid PHP open tag & valid tokens --\n";
30 // with invalid PHP tags and invalid tokens
31 echo "-- with invalid PHP tags and tokens --\n";
38 *** Testing token_get_all() : with invalid/unknown tokens ***
39 -- with valid PHP tags & invlid tokens --
243 -- with invlalid PHP open tag & valid tokens --
[all …]
H A Dbug77966.phpt15 $tokens = PhpToken::tokenize($code, TOKEN_PARSE);
16 foreach ($tokens as $token) {
H A Dtoken_get_all_variation11.phpt2 Test token_get_all() function : usage variations - with control structure tokens
19 echo "*** Testing token_get_all() : for control structure tokens ***\n";
22 echo "-- with if..elseif..else..tokens --\n";
38 echo "-- with while..., do..while, switch & continue tokens --\n";
51 echo "-- with for..foreach( as ) tokens --\n";
63 echo "-- with switch...case tokens --\n";
74 *** Testing token_get_all() : for control structure tokens ***
75 -- with if..elseif..else..tokens --
428 -- with while..., do..while, switch & continue tokens --
650 -- with for..foreach( as ) tokens --
[all …]
H A Dtoken_get_all_TOKEN_PARSE_002.phpt7 $tokens = token_get_all('<?php
15 array_walk($tokens, function($tk) {
H A Dbug54089.phpt16 $tokens = token_get_all($code);
17 var_dump($tokens);
20 foreach ($tokens as $t)
H A Dtoken_get_all_TOKEN_PARSE_001.phpt7 $tokens = token_get_all('<?php
22 array_walk($tokens, function($tk) {
H A DPhpToken_methods.phpt18 $tokens = PhpToken::tokenize($code);
19 foreach ($tokens as $i => $token) {
25 $token = $tokens[5];
H A Dtoken_get_all_variation10.phpt2 Test token_get_all() function : usage variations - with constant tokens
12 * bool const (no tokens specified) - T_UNKNOWN(307)
13 * null const (no tokens specified) - T_UNKNOWN(307)
H A Dtoken_get_all_variation12.phpt26 // parsing __CLASS__, __TRAIT__ and __FUNCTION__ tokens
39 // parsing __LINE__ and __METHOD__ tokens
H A Dtoken_get_all_variation17.phpt32 $tokens = token_get_all($source);
33 var_dump($tokens);
H A Dtoken_get_all_variation16.phpt48 $tokens = token_get_all($source);
49 var_dump($tokens);
/PHP-8.0/ext/opcache/tests/jit/
H A Dfetch_dim_r_013.phpt11 $y = 0; $tokens = [];
13 $tokens[$y] > $tokens[$y][] = $y;
/PHP-8.0/Zend/tests/
H A Dbug69758.phpt5 $tokens = array();
8 $tokens[$i] = $conditions;
H A Dbug76439_2.phpt2 Bug #76439: Don't always strip leading whitespace from heredoc T_ENCAPSED_AND_WHITESPACE tokens (er…
H A Dbug76439.phpt2 Bug #76439: Don't always strip leading whitespace from heredoc T_ENCAPSED_AND_WHITESPACE tokens
/PHP-8.0/ext/pdo_mysql/tests/
H A Dbug41125.phpt91 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d
129 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d
135 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d
145 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d
159 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d
165 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d
H A Dbug79132.phpt52 SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
53 SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
/PHP-8.0/scripts/dev/
H A Dfind_tested.php211 $tokens = token_get_all($r[1]);
212 $functions = array_filter($tokens, 'filter_functions');
/PHP-8.0/ext/standard/tests/strings/
H A Dstrtok_variation6.phpt2 Test strtok() function : usage variations - invalid escape sequences as tokens
11 // defining arrays for input strings and tokens
/PHP-8.0/ext/pdo_pgsql/tests/
H A Dbug70313.phpt37 SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
/PHP-8.0/ext/tokenizer/
H A Dtokenizer.c413 zval *tokens; member
455 ctx->tokens, token, (unsigned char *) text, length, line, ctx->token_class, NULL); in on_event()
458 HashTable *tokens_ht = Z_ARRVAL_P(ctx->tokens); in on_event()
472 add_token(ctx->tokens, T_INLINE_HTML, LANG_SCNG(yy_cursor), in on_event()
499 ctx.tokens = &token_stream; in tokenize_parse()
/PHP-8.0/ext/filter/
H A Dlogical_filters.c948 int tokens, length, i, offset, exp_separator_set; in php_filter_validate_mac() local
966 tokens = 3; in php_filter_validate_mac()
971 tokens = 6; in php_filter_validate_mac()
976 tokens = 6; in php_filter_validate_mac()
991 for (i = 0; i < tokens; i++) { in php_filter_validate_mac()
994 if (i < tokens - 1 && input[offset + length] != separator) { in php_filter_validate_mac()
/PHP-8.0/.github/scripts/windows/
H A Dbuild.bat26 for /f "tokens=*" %%a in ('type %PHP_BUILD_CACHE_SDK_DIR%\VERSION') do set GOT_SDK_VER=%%a

Completed in 66 milliseconds

12