2011-12-07 18:17:05 +01:00
|
|
|
Constant fetches
|
|
|
|
-----
|
|
|
|
<?php
|
|
|
|
|
|
|
|
A;
|
|
|
|
A::B;
|
2013-02-14 21:49:08 +01:00
|
|
|
A::class;
|
2011-12-07 18:17:05 +01:00
|
|
|
-----
|
|
|
|
array(
|
2017-01-19 22:25:22 +01:00
|
|
|
0: Stmt_Expression(
|
|
|
|
expr: Expr_ConstFetch(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
1: Stmt_Expression(
|
|
|
|
expr: Expr_ClassConstFetch(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
name: B
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
2: Stmt_Expression(
|
|
|
|
expr: Expr_ClassConstFetch(
|
|
|
|
class: Name(
|
|
|
|
parts: array(
|
|
|
|
0: A
|
|
|
|
)
|
2013-02-14 21:49:08 +01:00
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
name: class
|
2013-02-14 21:49:08 +01:00
|
|
|
)
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
)
|