Home
last modified time | relevance | path

Searched refs:token_get_all (Results 1 – 25 of 45) sorted by relevance

12

/PHP-7.4/ext/tokenizer/tests/
H A D003.phpt2 token_get_all() and wrong parameters
8 var_dump(token_get_all(array()));
9 var_dump(token_get_all(new stdClass));
10 var_dump(token_get_all(""));
11 var_dump(token_get_all(0));
12 var_dump(token_get_all(-1));
17 Warning: token_get_all() expects parameter 1 to be string, array given in %s on line %d
20 Warning: token_get_all() expects parameter 1 to be string, object given in %s on line %d
H A Dtoken_get_all_variation18.phpt2 Test token_get_all() function : usage variations - with HTML code
7 /* Prototype : array token_get_all(string $source)
13 * Testing token_get_all() with source string containing HTML code with PHP
17 echo "*** Testing token_get_all() : 'source' string with HTML tags ***\n";
29 var_dump( token_get_all($source));
34 *** Testing token_get_all() : 'source' string with HTML tags ***
H A Dtoken_get_all_basic.phpt2 Test token_get_all() function : basic functionality
7 /* Prototype : array token_get_all(string $source)
12 echo "*** Testing token_get_all() : basic functionality ***\n";
17 var_dump( token_get_all($source) );
22 var_dump( token_get_all($source) );
27 *** Testing token_get_all() : basic functionality ***
H A Dtoken_get_all_variation14.phpt2 Test token_get_all() function : usage variations - invalid token values
7 /* Prototype : array token_get_all(string $source)
13 * Testing token_get_all() with 'source' string containing invalid/unknown token value
17 echo "*** Testing token_get_all() : with invalid/unknown tokens ***\n";
27 var_dump( token_get_all($source));
33 var_dump( token_get_all($source));
38 var_dump( token_get_all($source));
43 *** Testing token_get_all() : with invalid/unknown tokens ***
H A Dbug76437.phpt2 Bug #76437 (token_get_all with TOKEN_PARSE flag fails to recognise close tag)
13 $open_tag1 = token_get_all($code)[$index];
14 $open_tag2 = token_get_all($code, TOKEN_PARSE)[$index];
H A Dtoken_get_all_variation19.phpt2 Reconstructing a script using token_get_all()
11 // A php script to test token_get_all()
33 $token_array = token_get_all($phpstr);
59 // A php script to test token_get_all()
H A Dtoken_get_all_variation7.phpt2 Test token_get_all() function : usage variations - with increment/decrement operators
7 /* Prototype : array token_get_all(string $source)
18 echo "*** Testing token_get_all() : 'source' string with different increment/decrement operators **…
27 var_dump( token_get_all($source));
32 *** Testing token_get_all() : 'source' string with different increment/decrement operators ***
H A Dbug67395.phpt8 $powToken = token_get_all('<?php **')[1][0];
11 $powEqualToken = token_get_all('<?php **=')[1][0];
H A Dtoken_get_all_TOKEN_PARSE_000.phpt2 Parse errors during token_get_all() with TOKEN_PARSE flag
9 token_get_all('<?php invalid code;', TOKEN_PARSE);
H A Dparse_errors.phpt2 Parse errors during token_get_all()
10 var_dump(token_get_all($code, TOKEN_PARSE));
15 foreach (token_get_all($code) as $token) {
H A Dtoken_get_all_variation12.phpt2 Test token_get_all() function : usage variations - with predefined language constants
7 /* Prototype : array token_get_all(string $source)
13 * Testing token_get_all() with following predefined language constants:
22 echo "*** Testing token_get_all() : with language constants ***\n";
29 var_dump( token_get_all($source));
42 var_dump( token_get_all($source));
50 var_dump( token_get_all($source));
55 *** Testing token_get_all() : with language constants ***
H A Dphp_tag_only.phpt10 foreach (token_get_all("<?php") as $token) {
14 foreach (token_get_all("Foobar<?php") as $token) {
H A Dphp_tag_only_2.phpt10 foreach (token_get_all("<?php") as $token) {
14 foreach (token_get_all("Foobar<?php") as $token) {
H A Dtoken_get_all_variation6.phpt2 Test token_get_all() function : usage variations - with bitwise operators
7 /* Prototype : array token_get_all(string $source)
18 echo "*** Testing token_get_all() : 'source' string with different bitwise operators ***\n";
28 var_dump( token_get_all($source));
33 *** Testing token_get_all() : 'source' string with different bitwise operators ***
H A Dtoken_get_all_variation17.phpt2 Test token_get_all() function : usage variations - with exception keywords
7 /* Prototype : array token_get_all(string $source)
13 * Testing token_get_all() with different exception keywords
19 echo "*** Testing token_get_all() : with exception keywords ***\n";
36 $tokens = token_get_all($source);
42 *** Testing token_get_all() : with exception keywords ***
H A Dbug60097.phpt2 Bug 60097: token_get_all fails to lex nested heredoc
8 var_dump(token_get_all('<?php
H A Dtoken_get_all_variation2.phpt2 Test token_get_all() function : usage variations - with different arithmetic operators
7 /* Prototype : array token_get_all(string $source)
18 echo "*** Testing token_get_all() : 'source' string with different arithmetic operators ***\n";
29 var_dump( token_get_all($source[$count]));
34 *** Testing token_get_all() : 'source' string with different arithmetic operators ***
H A Dtoken_get_all_variation9.phpt2 Test token_get_all() function : usage variations - with different types of comments
7 /* Prototype : array token_get_all(string $source)
19 echo "*** Testing token_get_all() : 'source' string with different comments ***\n";
42 var_dump( token_get_all($source));
47 *** Testing token_get_all() : 'source' string with different comments ***
H A Dtoken_get_all_variation3.phpt2 Test token_get_all() function : usage variations - with logical operators
7 /* Prototype : array token_get_all(string $source)
21 echo "*** Testing token_get_all() : 'source' string with different logical operators ***\n";
33 var_dump( token_get_all($source[$count]));
39 *** Testing token_get_all() : 'source' string with different logical operators ***
H A Dbug26463.phpt2 Bug #26463 (token_get_all() does not correctly handle semicolons after T_END_HEREDOC)
16 var_dump(token_get_all($str));
H A Dinvalid_octal_dnumber.phpt5 echo token_name(token_get_all('<?php 0177777777777777777777787')[1][0]), "\n";
H A Dbad_character.phpt2 token_get_all() produces T_BAD_CHARACTER for unexpected characters
15 foreach (token_get_all($code) as $token) {
H A Dtoken_get_all_variation15.phpt2 Test token_get_all() function : usage variations - heredoc string for 'source'
7 /* Prototype : array token_get_all(string $source)
13 …* Testing token_get_all() with heredoc 'source' string with all different types of token and hered…
18 echo "*** Testing token_get_all() : with heredoc source string ***\n";
45 var_dump( token_get_all($source));
50 *** Testing token_get_all() : with heredoc source string ***
/PHP-7.4/ext/reflection/tests/
H A Dbug64936.phpt16 token_get_all("<?php\n/**\n * Foo\n */"); // doc_comment compiler global now contains this Foo comm…
23 token_get_all("<?php\n/**\n * Foo\n */"); // doc_comment compiler global now contains this Foo comm…
/PHP-7.4/ext/tokenizer/
H A Dphp_tokenizer.h39 PHP_FUNCTION(token_get_all);

Completed in 38 milliseconds

12