1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-11 17:09:41 +01:00
PHP-Parser/test/code/parser/expr/includeAndEval.test
2017-01-19 22:25:22 +01:00

50 lines
994 B
Plaintext

Include and eval
-----
<?php
include 'A.php';
include_once 'A.php';
require 'A.php';
require_once 'A.php';
eval('A');
-----
array(
0: Stmt_Expression(
expr: Expr_Include(
expr: Scalar_String(
value: A.php
)
type: TYPE_INCLUDE (1)
)
)
1: Stmt_Expression(
expr: Expr_Include(
expr: Scalar_String(
value: A.php
)
type: TYPE_INCLUDE_ONCE (2)
)
)
2: Stmt_Expression(
expr: Expr_Include(
expr: Scalar_String(
value: A.php
)
type: TYPE_REQUIRE (3)
)
)
3: Stmt_Expression(
expr: Expr_Include(
expr: Scalar_String(
value: A.php
)
type: TYPE_REQURE_ONCE (4)
)
)
4: Stmt_Expression(
expr: Expr_Eval(
expr: Scalar_String(
value: A
)
)
)
)