Mercurial > hg > isophonics-drupal-site
view vendor/nikic/php-parser/test/code/parser/expr/uvs/staticProperty.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 |
line wrap: on
line source
UVS static access ----- <?php A::$b; $A::$b; 'A'::$b; ('A' . '')::$b; 'A'[0]::$b; A::$$b; A::$$c[1]; A::$A::$b; ----- !!php7 array( 0: Stmt_Expression( expr: Expr_StaticPropertyFetch( class: Name( parts: array( 0: A ) ) name: VarLikeIdentifier( name: b ) ) ) 1: Stmt_Expression( expr: Expr_StaticPropertyFetch( class: Expr_Variable( name: A ) name: VarLikeIdentifier( name: b ) ) ) 2: Stmt_Expression( expr: Expr_StaticPropertyFetch( class: Scalar_String( value: A ) name: VarLikeIdentifier( name: b ) ) ) 3: Stmt_Expression( expr: Expr_StaticPropertyFetch( class: Expr_BinaryOp_Concat( left: Scalar_String( value: A ) right: Scalar_String( value: ) ) name: VarLikeIdentifier( name: b ) ) ) 4: Stmt_Expression( expr: Expr_StaticPropertyFetch( class: Expr_ArrayDimFetch( var: Scalar_String( value: A ) dim: Scalar_LNumber( value: 0 ) ) name: VarLikeIdentifier( name: b ) ) ) 5: Stmt_Expression( expr: Expr_StaticPropertyFetch( class: Name( parts: array( 0: A ) ) name: Expr_Variable( name: b ) ) ) 6: Stmt_Expression( expr: Expr_ArrayDimFetch( var: Expr_StaticPropertyFetch( class: Name( parts: array( 0: A ) ) name: Expr_Variable( name: c ) ) dim: Scalar_LNumber( value: 1 ) ) ) 7: Stmt_Expression( expr: Expr_StaticPropertyFetch( class: Expr_StaticPropertyFetch( class: Name( parts: array( 0: A ) ) name: VarLikeIdentifier( name: A ) ) name: VarLikeIdentifier( name: b ) ) ) )