Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/test/code/parser/stmt/controlFlow.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 | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 Control flow statements |
Chris@0 | 2 ----- |
Chris@0 | 3 <?php |
Chris@0 | 4 |
Chris@0 | 5 break; |
Chris@0 | 6 break 2; |
Chris@0 | 7 |
Chris@0 | 8 continue; |
Chris@0 | 9 continue 2; |
Chris@0 | 10 |
Chris@0 | 11 return; |
Chris@0 | 12 return $a; |
Chris@0 | 13 |
Chris@0 | 14 throw $e; |
Chris@0 | 15 |
Chris@0 | 16 label: |
Chris@0 | 17 goto label; |
Chris@0 | 18 ----- |
Chris@0 | 19 array( |
Chris@0 | 20 0: Stmt_Break( |
Chris@0 | 21 num: null |
Chris@0 | 22 ) |
Chris@0 | 23 1: Stmt_Break( |
Chris@0 | 24 num: Scalar_LNumber( |
Chris@0 | 25 value: 2 |
Chris@0 | 26 ) |
Chris@0 | 27 ) |
Chris@0 | 28 2: Stmt_Continue( |
Chris@0 | 29 num: null |
Chris@0 | 30 ) |
Chris@0 | 31 3: Stmt_Continue( |
Chris@0 | 32 num: Scalar_LNumber( |
Chris@0 | 33 value: 2 |
Chris@0 | 34 ) |
Chris@0 | 35 ) |
Chris@0 | 36 4: Stmt_Return( |
Chris@0 | 37 expr: null |
Chris@0 | 38 ) |
Chris@0 | 39 5: Stmt_Return( |
Chris@0 | 40 expr: Expr_Variable( |
Chris@0 | 41 name: a |
Chris@0 | 42 ) |
Chris@0 | 43 ) |
Chris@0 | 44 6: Stmt_Throw( |
Chris@0 | 45 expr: Expr_Variable( |
Chris@0 | 46 name: e |
Chris@0 | 47 ) |
Chris@0 | 48 ) |
Chris@0 | 49 7: Stmt_Label( |
Chris@13 | 50 name: Identifier( |
Chris@13 | 51 name: label |
Chris@13 | 52 ) |
Chris@0 | 53 ) |
Chris@0 | 54 8: Stmt_Goto( |
Chris@13 | 55 name: Identifier( |
Chris@13 | 56 name: label |
Chris@13 | 57 ) |
Chris@0 | 58 ) |
Chris@0 | 59 ) |