Home
last modified time | relevance | path

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

12345

/PHP-8.3/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";
/PHP-8.3/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.3/Zend/
H A Dzend_highlight.c80 zval token; in zend_highlight() local
116 ZVAL_UNDEF(&token); in zend_highlight()
140 if (Z_TYPE(token) == IS_STRING) { in zend_highlight()
150 zval_ptr_dtor_str(&token); in zend_highlight()
154 ZVAL_UNDEF(&token); in zend_highlight()
168 zval token; in zend_strip() local
182 ZVAL_UNDEF(&token); in zend_strip()
193 ZVAL_UNDEF(&token); in zend_strip()
201 if (Z_TYPE(token) == IS_STRING) { in zend_strip()
212 zval_ptr_dtor_str(&token); in zend_strip()
[all …]
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_ini_parser.y336 %token TC_SECTION
337 %token TC_RAW
338 %token TC_CONSTANT
339 %token TC_NUMBER
340 %token TC_STRING
342 %token TC_LABEL
343 %token TC_OFFSET
345 %token TC_VARNAME
348 %token BOOL_TRUE
349 %token BOOL_FALSE
[all …]
/PHP-8.3/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.3/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:
/PHP-8.3/ext/tokenizer/
H A Dtokenizer.c286 zval token; in add_token() local
289 ZVAL_OBJ(&token, obj); in add_token()
306 array_init_size(&token, 3); in add_token()
326 zval token; in tokenize() local
348 if (Z_TYPE(token) != IS_UNDEF) { in tokenize()
349 zval_ptr_dtor_nogc(&token); in tokenize()
350 ZVAL_UNDEF(&token); in tokenize()
421 if (token == END) break; in on_event()
424 token = T_CLOSE_TAG; in on_event()
426 token = T_OPEN_TAG_WITH_ECHO; in on_event()
[all …]
/PHP-8.3/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.3/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.3/ext/standard/tests/serialize/
H A Dbug73341.phpt6 $token = 'a:2:{i:0;O:1:"0":2:{s:1:"0";i:0;s:1:"0";a:1:{i:0;C:11:"ArrayObject":7:{x:i:0;r}';
7 $obj = unserialize($token);
13 $token = 'a:2:{i:0;O:1:"0":2:0s:1:"0";i:0;s:1:"0";a:1:{i:0;C:11:"ArrayObject":7:{x:i:0;r}';
14 $obj = unserialize($token);
H A Dbug65481.phpt32 $token = new Token;
33 $token = serialize($token);
/PHP-8.3/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
282 int token = php_json_scan(&parser->scanner); in php_json_yylex() local
[all …]
/PHP-8.3/sapi/cli/tests/
H A D024.phpt73 [2] => Parse error: syntax error, unexpected token "private", expecting "{" in %s on line %d
81 [1] => Parse error: syntax error, unexpected token "private", expecting "{" in %s on line %d
84 [4] => Parse error: syntax error, unexpected token "private", expecting "{" in %s on line %d
91 [1] => Parse error: syntax error, unexpected token "private", expecting "{" in %s on line %d
95 [5] => Parse error: syntax error, unexpected token "private", expecting "{" in %s on line %d
102 [1] => Parse error: syntax error, unexpected token "private", expecting "{" in %s on line %d
105 [4] => Parse error: syntax error, unexpected token "private", expecting "{" in %s on line %d

Completed in 42 milliseconds

12345