Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/test/code/parser/stmt/function/specialVars.test @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 5fb285c0d0e3 |
rev | line source |
---|---|
Chris@0 | 1 Special function variables |
Chris@0 | 2 ----- |
Chris@0 | 3 <?php |
Chris@0 | 4 |
Chris@0 | 5 function a() { |
Chris@0 | 6 global $a, ${'b'}, $$c; |
Chris@0 | 7 static $c, $d = 'e'; |
Chris@0 | 8 } |
Chris@0 | 9 ----- |
Chris@0 | 10 array( |
Chris@0 | 11 0: Stmt_Function( |
Chris@0 | 12 byRef: false |
Chris@0 | 13 name: a |
Chris@0 | 14 params: array( |
Chris@0 | 15 ) |
Chris@0 | 16 returnType: null |
Chris@0 | 17 stmts: array( |
Chris@0 | 18 0: Stmt_Global( |
Chris@0 | 19 vars: array( |
Chris@0 | 20 0: Expr_Variable( |
Chris@0 | 21 name: a |
Chris@0 | 22 ) |
Chris@0 | 23 1: Expr_Variable( |
Chris@0 | 24 name: Scalar_String( |
Chris@0 | 25 value: b |
Chris@0 | 26 ) |
Chris@0 | 27 ) |
Chris@0 | 28 2: Expr_Variable( |
Chris@0 | 29 name: Expr_Variable( |
Chris@0 | 30 name: c |
Chris@0 | 31 ) |
Chris@0 | 32 ) |
Chris@0 | 33 ) |
Chris@0 | 34 ) |
Chris@0 | 35 1: Stmt_Static( |
Chris@0 | 36 vars: array( |
Chris@0 | 37 0: Stmt_StaticVar( |
Chris@0 | 38 name: c |
Chris@0 | 39 default: null |
Chris@0 | 40 ) |
Chris@0 | 41 1: Stmt_StaticVar( |
Chris@0 | 42 name: d |
Chris@0 | 43 default: Scalar_String( |
Chris@0 | 44 value: e |
Chris@0 | 45 ) |
Chris@0 | 46 ) |
Chris@0 | 47 ) |
Chris@0 | 48 ) |
Chris@0 | 49 ) |
Chris@0 | 50 ) |
Chris@0 | 51 ) |