2011-11-27 11:20:35 +01:00
|
|
|
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
|
|
|
|
)
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_INCLUDE (1)
|
2011-11-27 11:20:35 +01:00
|
|
|
)
|
|
|
|
1: Expr_Include(
|
|
|
|
expr: Scalar_String(
|
|
|
|
value: A.php
|
|
|
|
)
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_INCLUDE_ONCE (2)
|
2011-11-27 11:20:35 +01:00
|
|
|
)
|
|
|
|
2: Expr_Include(
|
|
|
|
expr: Scalar_String(
|
|
|
|
value: A.php
|
|
|
|
)
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_REQUIRE (3)
|
2011-11-27 11:20:35 +01:00
|
|
|
)
|
|
|
|
3: Expr_Include(
|
|
|
|
expr: Scalar_String(
|
|
|
|
value: A.php
|
|
|
|
)
|
2016-07-25 14:04:04 +02:00
|
|
|
type: TYPE_REQURE_ONCE (4)
|
2011-11-27 11:20:35 +01:00
|
|
|
)
|
|
|
|
4: Expr_Eval(
|
|
|
|
expr: Scalar_String(
|
|
|
|
value: A
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|