Searched refs:token_get_all (Results 1 – 25 of 45) sorted by relevance
12
2 token_get_all() and wrong parameters8 var_dump(token_get_all(""));9 var_dump(token_get_all(0));10 var_dump(token_get_all(-1));
2 Test token_get_all() function : usage variations - with HTML code8 * Testing token_get_all() with source string containing HTML code with PHP12 echo "*** Testing token_get_all() : 'source' string with HTML tags ***\n";24 var_dump( token_get_all($source));29 *** Testing token_get_all() : 'source' string with HTML tags ***
2 Test token_get_all() function : basic functionality7 echo "*** Testing token_get_all() : basic functionality ***\n";12 var_dump( token_get_all($source) );17 var_dump( token_get_all($source) );22 *** Testing token_get_all() : basic functionality ***
2 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];
2 Test token_get_all() function : usage variations - invalid token values8 * Testing token_get_all() with 'source' string containing invalid/unknown token value12 echo "*** Testing token_get_all() : with invalid/unknown tokens ***\n";22 var_dump( token_get_all($source));28 var_dump( token_get_all($source));33 var_dump( token_get_all($source));38 *** Testing token_get_all() : with invalid/unknown tokens ***
2 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()
8 $powToken = token_get_all('<?php **')[1][0];11 $powEqualToken = token_get_all('<?php **=')[1][0];
2 Parse errors during token_get_all() with TOKEN_PARSE flag9 token_get_all('<?php invalid code;', TOKEN_PARSE);
2 Parse errors during token_get_all()10 var_dump(token_get_all($code, TOKEN_PARSE));15 foreach (token_get_all($code) as $token) {
10 foreach (token_get_all("<?php") as $token) {14 foreach (token_get_all("Foobar<?php") as $token) {
2 Test token_get_all() function : usage variations - with increment/decrement operators13 echo "*** Testing token_get_all() : 'source' string with different increment/decrement operators **…22 var_dump(token_get_all($source));27 *** Testing token_get_all() : 'source' string with different increment/decrement operators ***
2 Test token_get_all() function : usage variations - with predefined language constants8 * Testing token_get_all() with following predefined language constants:17 echo "*** Testing token_get_all() : with language constants ***\n";24 var_dump( token_get_all($source));37 var_dump( token_get_all($source));45 var_dump( token_get_all($source));50 *** Testing token_get_all() : with language constants ***
2 token_get_all() produces T_BAD_CHARACTER for unexpected characters15 foreach (token_get_all($code) as $token) {
2 Bug 60097: token_get_all fails to lex nested heredoc8 var_dump(token_get_all('<?php
2 Test token_get_all() function : usage variations - with bitwise operators13 echo "*** Testing token_get_all() : 'source' string with different bitwise operators ***\n";23 var_dump( token_get_all($source));28 *** Testing token_get_all() : 'source' string with different bitwise operators ***
2 Test token_get_all() function : usage variations - with exception keywords8 * Testing token_get_all() with different exception keywords14 echo "*** Testing token_get_all() : with exception keywords ***\n";32 $tokens = token_get_all($source);38 *** Testing token_get_all() : with exception keywords ***
2 Test token_get_all() function : usage variations - with different arithmetic operators13 echo "*** Testing token_get_all() : 'source' string with different arithmetic operators ***\n";24 var_dump( token_get_all($source[$count]));29 *** Testing token_get_all() : 'source' string with different arithmetic operators ***
2 Test token_get_all() function : usage variations - with different types of comments14 echo "*** Testing token_get_all() : 'source' string with different comments ***\n";37 var_dump( token_get_all($source));42 *** Testing token_get_all() : 'source' string with different comments ***
2 Bug #26463 (token_get_all() does not correctly handle semicolons after T_END_HEREDOC)16 var_dump(token_get_all($str));
7 echo token_name(token_get_all('<?php 0177777777777777777777787')[1][0]), "\n";
2 Test token_get_all() function : usage variations - heredoc string for 'source'8 …* Testing token_get_all() with heredoc 'source' string with all different types of token and hered…13 echo "*** Testing token_get_all() : with heredoc source string ***\n";40 var_dump( token_get_all($source));45 *** Testing token_get_all() : with heredoc source string ***
8 var_dump(token_get_all("<?php 0_10000000000000000000009;"));
2 Test token_get_all() function : usage variations - with logical operators16 echo "*** Testing token_get_all() : 'source' string with different logical operators ***\n";28 var_dump( token_get_all($source[$count]));34 *** Testing token_get_all() : 'source' string with different logical operators ***
16 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…
Completed in 16 milliseconds