1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-02 17:28:27 +01:00
PHP-Parser/test/code/parser/expr/includeAndEval.test
2017-03-17 11:35:48 +01:00

50 lines
995 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_REQUIRE_ONCE (4)
)
)
4: Stmt_Expression(
expr: Expr_Eval(
expr: Scalar_String(
value: A
)
)
)
)