/PHP-8.4/ext/tokenizer/tests/ |
H A D | PhpToken_toString.phpt | 8 $tokens = PhpToken::tokenize('<?php echo "Hello ". $what;'); 9 var_dump(implode($tokens)); 11 var_dump($tokens[0] instanceof Stringable); 12 var_dump((string) $tokens[0]); 13 var_dump($tokens[0]->__toString());
|
H A D | attributes.phpt | 2 Attributes are exposed as tokens. 8 $tokens = token_get_all('<?php #[A1(1, 2)] class C1 { }'); 10 $attr = $tokens[1]; 15 $class = $tokens[2];
|
H A D | token_get_all_variation14.phpt | 9 * 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 D | bug81342.phpt | 8 $tokens = PhpToken::tokenize('<?php $x & $x; $x & 11 foreach ($tokens as $token) {
|
H A D | bug77966.phpt | 17 $tokens = PhpToken::tokenize($code, TOKEN_PARSE); 18 foreach ($tokens as $token) {
|
H A D | token_get_all_variation11.phpt | 2 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 D | token_get_all_TOKEN_PARSE_002.phpt | 7 $tokens = token_get_all('<?php 15 array_walk($tokens, function($tk) {
|
H A D | bug54089.phpt | 16 $tokens = token_get_all($code); 17 var_dump($tokens); 20 foreach ($tokens as $t)
|
H A D | token_get_all_TOKEN_PARSE_001.phpt | 7 $tokens = token_get_all('<?php 22 array_walk($tokens, function($tk) {
|
H A D | PhpToken_methods.phpt | 18 $tokens = PhpToken::tokenize($code); 19 foreach ($tokens as $i => $token) { 25 $token = $tokens[5];
|
/PHP-8.4/ext/dom/tests/modern/css_selectors/ |
H A D | attribute.phpt | 33 test_helper($dom, 'a[tokens~="def"]'); 34 test_helper($dom, 'a[tokens~="de"]'); 35 test_helper($dom, 'a[tokens~="def ghi"]'); 48 test_helper($dom, 'a[tokens~="DE" i]'); 49 test_helper($dom, 'a[tokens~="DEF" i]'); 84 --- Selector: a[tokens~="def"] --- 86 --- Selector: a[tokens~="de"] --- 87 --- Selector: a[tokens~="def ghi"] --- 115 --- Selector: a[tokens~="DE" i] --- 116 --- Selector: a[tokens~="DEF" i] --- [all …]
|
/PHP-8.4/ext/opcache/tests/jit/ |
H A D | fetch_dim_r_013.phpt | 10 $y = 0; $tokens = []; 12 $tokens[$y] > $tokens[$y][] = $y;
|
/PHP-8.4/.github/scripts/windows/ |
H A D | find-target-branch.bat | 3 for /f "usebackq tokens=3" %%i in (`findstr PHP_MAJOR_VERSION main\php_version.h`) do set BRANCH=%%i 4 for /f "usebackq tokens=3" %%i in (`findstr PHP_MINOR_VERSION main\php_version.h`) do set BRANCH=%B…
|
/PHP-8.4/Zend/tests/ |
H A D | bug69758.phpt | 5 $tokens = array(); 8 $tokens[$i] = $conditions;
|
H A D | bug76439_2.phpt | 2 Bug #76439: Don't always strip leading whitespace from heredoc T_ENCAPSED_AND_WHITESPACE tokens (er…
|
H A D | bug63882_2.phpt | 8 $tokens = $conditions;
|
H A D | bug76439.phpt | 2 Bug #76439: Don't always strip leading whitespace from heredoc T_ENCAPSED_AND_WHITESPACE tokens
|
/PHP-8.4/ext/pdo_mysql/tests/ |
H A D | bug41125.phpt | 89 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d 127 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d 133 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d 143 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d 157 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d 163 …nvalid parameter number: number of bound variables does not match number of tokens in %s on line %d
|
H A D | bug79132.phpt | 53 SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens 54 SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
|
/PHP-8.4/ext/dom/tests/modern/token_list/ |
H A D | supports.phpt | 18 Attribute "class" does not define any supported tokens
|
/PHP-8.4/scripts/dev/ |
H A D | find_tested.php | 207 $tokens = token_get_all($r[1]); 208 $functions = array_filter($tokens, 'filter_functions');
|
/PHP-8.4/ext/dom/lexbor/lexbor/css/syntax/ |
H A D | tokenizer.c | 82 tkz->tokens = lexbor_dobject_create(); in lxb_css_syntax_tokenizer_init() 83 status = lexbor_dobject_init(tkz->tokens, 128, in lxb_css_syntax_tokenizer_init() 141 lexbor_dobject_clean(tkz->tokens); in lxb_css_syntax_tokenizer_clean() 163 if (tkz->tokens != NULL) { in lxb_css_syntax_tokenizer_destroy() 164 tkz->tokens = lexbor_dobject_destroy(tkz->tokens, true); in lxb_css_syntax_tokenizer_destroy()
|
/PHP-8.4/ext/tokenizer/ |
H A D | tokenizer.c | 386 zval *tokens; member 428 ctx->tokens, token, (unsigned char *) text, length, line, ctx->token_class, NULL); in on_event() 431 HashTable *tokens_ht = Z_ARRVAL_P(ctx->tokens); in on_event() 445 add_token(ctx->tokens, T_INLINE_HTML, LANG_SCNG(yy_cursor), in on_event() 472 ctx.tokens = &token_stream; in tokenize_parse()
|
/PHP-8.4/docs/source/introduction/ |
H A D | high-level-overview.rst | 19 - Tokenization - splitting whole source files into words, called tokens. 20 - Parsing - building a tree structure from tokens, called AST (abstract syntax tree). 30 |> tokenizer -- tokens 69 this process. It takes a definition file and generates efficient C code to build these tokens from a 79 Parsing is the process of reading the tokens generated from the tokenizer and building a tree 83 tree structure from the tokens to more closely reflect the source code the way humans see it. 85 Here is a simplified example of what an AST from the tokens above might look like.
|
/PHP-8.4/ext/pdo_pgsql/tests/ |
H A D | bug70313.phpt | 39 SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
|