Home
last modified time | relevance | path

Searched refs:token (Results 1 – 25 of 102) sorted by relevance

12345

/PHP-8.1/ext/tokenizer/tests/
H A DPhpToken_methods.phpt25 $token = $tokens[5];
34 var_dump($token->is(T_CLASS));
35 var_dump($token->is('class'));
41 $token->is(3.141);
46 $token->is([3.141]);
51 unset($token->id);
52 unset($token->text);
54 $token->is(T_FUNCTION);
59 $token->is('function');
64 $token->is([T_FUNCTION]);
[all …]
H A DPhpToken_constructor.phpt8 $token = new PhpToken(300, 'function');
9 var_dump($token);
10 $token = new PhpToken(300, 'function', 10);
11 var_dump($token);
12 $token = new PhpToken(300, 'function', 10, 100);
13 var_dump($token);
H A Dbad_character.phpt15 foreach (token_get_all($code) as $token) {
16 if (is_array($token)) {
17 echo token_name($token[0]), " ", strlen($token[1]), "\n";
19 echo $token, "\n";
H A Dbug76991.phpt18 foreach (token_get_all($code) as $token) {
19 if (is_array($token)) {
20 echo token_name($token[0]) . ": " .str_replace("\n", '\n', $token[1]);
22 echo $token;
H A Dphp_tag_only.phpt10 foreach (token_get_all("<?php") as $token) {
11 echo token_name($token[0]), "\n";
14 foreach (token_get_all("Foobar<?php") as $token) {
15 echo token_name($token[0]), "\n";
H A Dphp_tag_only_2.phpt10 foreach (token_get_all("<?php") as $token) {
11 echo token_name($token[0]), "\n";
14 foreach (token_get_all("Foobar<?php") as $token) {
15 echo token_name($token[0]), "\n";
H A Dtoken_get_all_variation19.phpt36 // reconstruct a script (without open/close tags) from the token array
37 foreach ($token_array as $token) {
38 if (is_array($token)) {
39 if (strncmp($token[1], '<?php', 5) == 0) {
42 if (strncmp($token[1], '?>', 2) == 0) {
45 $script .= $token[1];
47 $script .= $token;
H A Dparse_errors.phpt15 foreach (token_get_all($code) as $token) {
16 if (is_array($token)) {
17 echo token_name($token[0]), " ($token[1])\n";
19 echo "$token\n";
H A Dbug81342.phpt2 Bug #81342: New ampersand token parsing depends on new line after it
11 foreach ($tokens as $token) {
12 echo $token->getTokenName(), "\n";
H A DPhpToken_extension.phpt23 foreach (MyPhpToken::tokenize($code) as $token) {
24 echo $token->getLoweredText();
26 if ($token->extra !== 123) {
H A Dnamespaced_names.phpt17 foreach (PhpToken::tokenize($code) as $token) {
18 echo "{$token->getTokenName()}: \"$token->text\"\n";
H A Dbug77966.phpt18 foreach ($tokens as $token) {
19 echo "{$token->getTokenName()}: \"$token->text\"\n";
H A Dbug80462.phpt8 foreach (PhpToken::tokenize('<?php $foo = $a?->b();', TOKEN_PARSE) as $token) {
9 echo $token->getTokenName(), "\n";
/PHP-8.1/sapi/phpdbg/
H A Dphpdbg_parser.y42 %token END 0 "end of command"
43 %token T_EVAL "eval"
44 %token T_RUN "run"
45 %token T_SHELL "shell"
46 %token T_IF "if (condition)"
50 %token T_COLON ": (colon)"
53 %token T_SEPARATOR "# (pound sign)"
55 %token T_DIGITS "digits (numbers)"
57 %token T_ADDR "address"
58 %token T_OPCODE "opcode"
[all …]
/PHP-8.1/Zend/
H A Dzend_language_parser.y96 %token <ast> T_INLINE_HTML
182 %token END 0 "end of file"
183 %token T_ATTRIBUTE "'#['"
184 %token T_PLUS_EQUAL "'+='"
185 %token T_MINUS_EQUAL "'-='"
204 %token T_SPACESHIP "'<=>'"
205 %token T_SL "'<<'"
206 %token T_SR "'>>'"
207 %token T_INC "'++'"
208 %token T_DEC "'--'"
[all …]
H A Dzend_highlight.c86 zval token; in zend_highlight() local
123 ZVAL_UNDEF(&token); in zend_highlight()
147 if (Z_TYPE(token) == IS_STRING) { in zend_highlight()
157 zval_ptr_dtor_str(&token); in zend_highlight()
161 ZVAL_UNDEF(&token); in zend_highlight()
176 zval token; in zend_strip() local
190 ZVAL_UNDEF(&token); in zend_strip()
201 ZVAL_UNDEF(&token); in zend_strip()
209 if (Z_TYPE(token) == IS_STRING) { in zend_strip()
220 zval_ptr_dtor_str(&token); in zend_strip()
[all …]
H A Dzend_ini_parser.y289 %token TC_SECTION
290 %token TC_RAW
291 %token TC_CONSTANT
292 %token TC_NUMBER
293 %token TC_STRING
295 %token TC_LABEL
296 %token TC_OFFSET
298 %token TC_VARNAME
300 %token BOOL_TRUE
301 %token BOOL_FALSE
[all …]
/PHP-8.1/ext/phar/
H A Dmakestub.php6 foreach (token_get_all($s) as $token) {
7 if (is_array($token)) {
8 if ($token[0] == T_COMMENT) {
9 $token[1] = '';
11 if ($token[0] == T_WHITESPACE) {
12 $n = str_repeat("\n", substr_count($token[1], "\n"));
13 $token[1] = strlen($n) ? $n : ' ';
15 $news .= $token[1];
17 $news .= $token;
/PHP-8.1/ext/standard/tests/strings/
H A Dstrtok_basic.phpt13 $token = ' ().';
16 echo "\nThe token string is:\n\"$token\"\n";
20 var_dump( strtok($str, $token) );
24 var_dump( strtok($token) );
35 The token string is:
H A Dstrtok_variation6.phpt6 * Testing strtok() : with invalid escape sequences in token
9 echo "*** Testing strtok() : with invalid escape sequences in token ***\n";
27 // when supplied with different string and token values
32 foreach( $token_array as $token ) {
33 var_dump( strtok($string, $token) );
35 var_dump( strtok($token) );
46 *** Testing strtok() : with invalid escape sequences in token ***
/PHP-8.1/ext/tokenizer/
H A Dtokenizer.c290 zval token; in add_token() local
293 ZVAL_OBJ(&token, obj); in add_token()
310 array_init_size(&token, 3); in add_token()
330 zval token; in tokenize() local
352 if (Z_TYPE(token) != IS_UNDEF) { in tokenize()
353 zval_ptr_dtor_nogc(&token); in tokenize()
354 ZVAL_UNDEF(&token); in tokenize()
425 if (token == END) break; in on_event()
428 token = T_CLOSE_TAG; in on_event()
430 token = T_OPEN_TAG_WITH_ECHO; in on_event()
[all …]
/PHP-8.1/ext/json/
H A Djson_parser.y53 %token <value> PHP_JSON_T_NUL
54 %token <value> PHP_JSON_T_TRUE
55 %token <value> PHP_JSON_T_FALSE
56 %token <value> PHP_JSON_T_INT
57 %token <value> PHP_JSON_T_DOUBLE
58 %token <value> PHP_JSON_T_STRING
59 %token <value> PHP_JSON_T_ESTRING
60 %token PHP_JSON_T_EOI
61 %token PHP_JSON_T_ERROR
259 int token = php_json_scan(&parser->scanner); in php_json_yylex() local
[all …]
/PHP-8.1/ext/date/tests/
H A D005.phpt19 Warning: idate(): Unrecognized date format token in %s on line %d
25 Warning: idate(): Unrecognized date format token in %s on line %d
29 Warning: idate(): Unrecognized date format token in %s on line %d
32 Warning: idate(): Unrecognized date format token in %s on line %d
/PHP-8.1/win32/
H A Dsendmail.c391 char *tempMailTo, *token, *token_state; in SendText() local
446 while (token != NULL) in SendText()
448 SMTP_SKIP_SPACE(token); in SendText()
467 while (token != NULL) in SendText()
469 SMTP_SKIP_SPACE(token); in SendText()
507 while (token != NULL) in SendText()
509 SMTP_SKIP_SPACE(token); in SendText()
532 while (token != NULL) in SendText()
534 SMTP_SKIP_SPACE(token); in SendText()
580 while (token != NULL) in SendText()
[all …]
/PHP-8.1/ext/standard/tests/serialize/
H A Dbug65481.phpt32 $token = new Token;
33 $token = serialize($token);

Completed in 66 milliseconds

12345