Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/test/code/parser/exprStmtMode.test @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | |
children |
rev | line source |
---|---|
Chris@13 | 1 Expression statement mode |
Chris@13 | 2 ----- |
Chris@13 | 3 <?php |
Chris@13 | 4 $a = $b; |
Chris@13 | 5 yield $x; |
Chris@13 | 6 ----- |
Chris@13 | 7 !!exprStmts |
Chris@13 | 8 array( |
Chris@13 | 9 0: Stmt_Expression( |
Chris@13 | 10 expr: Expr_Assign( |
Chris@13 | 11 var: Expr_Variable( |
Chris@13 | 12 name: a |
Chris@13 | 13 ) |
Chris@13 | 14 expr: Expr_Variable( |
Chris@13 | 15 name: b |
Chris@13 | 16 ) |
Chris@13 | 17 ) |
Chris@13 | 18 ) |
Chris@13 | 19 1: Stmt_Expression( |
Chris@13 | 20 expr: Expr_Yield( |
Chris@13 | 21 key: null |
Chris@13 | 22 value: Expr_Variable( |
Chris@13 | 23 name: x |
Chris@13 | 24 ) |
Chris@13 | 25 ) |
Chris@13 | 26 ) |
Chris@13 | 27 ) |
Chris@13 | 28 ----- |
Chris@13 | 29 <?php |
Chris@13 | 30 $a = $b |
Chris@13 | 31 $c = $d |
Chris@13 | 32 ----- |
Chris@13 | 33 !!exprStmts |
Chris@13 | 34 Syntax error, unexpected T_VARIABLE from 3:1 to 3:2 |
Chris@13 | 35 Syntax error, unexpected EOF from 3:8 to 3:8 |
Chris@13 | 36 array( |
Chris@13 | 37 0: Stmt_Expression( |
Chris@13 | 38 expr: Expr_Assign( |
Chris@13 | 39 var: Expr_Variable( |
Chris@13 | 40 name: a |
Chris@13 | 41 ) |
Chris@13 | 42 expr: Expr_Variable( |
Chris@13 | 43 name: b |
Chris@13 | 44 ) |
Chris@13 | 45 ) |
Chris@13 | 46 ) |
Chris@13 | 47 1: Stmt_Expression( |
Chris@13 | 48 expr: Expr_Assign( |
Chris@13 | 49 var: Expr_Variable( |
Chris@13 | 50 name: c |
Chris@13 | 51 ) |
Chris@13 | 52 expr: Expr_Variable( |
Chris@13 | 53 name: d |
Chris@13 | 54 ) |
Chris@13 | 55 ) |
Chris@13 | 56 ) |
Chris@13 | 57 ) |