mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-11 08:59:46 +01:00
81e53ce0ff
This changset also adds unit tests for Comments and adds a way to test the pretty printer.
40 lines
644 B
Plaintext
40 lines
644 B
Plaintext
Include and eval
|
|
-----
|
|
<?php
|
|
include 'A.php';
|
|
include_once 'A.php';
|
|
require 'A.php';
|
|
require_once 'A.php';
|
|
eval('A');
|
|
-----
|
|
array(
|
|
0: Expr_Include(
|
|
expr: Scalar_String(
|
|
value: A.php
|
|
)
|
|
type: 1
|
|
)
|
|
1: Expr_Include(
|
|
expr: Scalar_String(
|
|
value: A.php
|
|
)
|
|
type: 2
|
|
)
|
|
2: Expr_Include(
|
|
expr: Scalar_String(
|
|
value: A.php
|
|
)
|
|
type: 3
|
|
)
|
|
3: Expr_Include(
|
|
expr: Scalar_String(
|
|
value: A.php
|
|
)
|
|
type: 4
|
|
)
|
|
4: Expr_Eval(
|
|
expr: Scalar_String(
|
|
value: A
|
|
)
|
|
)
|
|
) |