includeAndEval.test 713 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Include and eval
  2. -----
  3. <?php
  4. include 'A.php';
  5. include_once 'A.php';
  6. require 'A.php';
  7. require_once 'A.php';
  8. eval('A');
  9. -----
  10. array(
  11. 0: Expr_Include(
  12. expr: Scalar_String(
  13. value: A.php
  14. )
  15. type: TYPE_INCLUDE (1)
  16. )
  17. 1: Expr_Include(
  18. expr: Scalar_String(
  19. value: A.php
  20. )
  21. type: TYPE_INCLUDE_ONCE (2)
  22. )
  23. 2: Expr_Include(
  24. expr: Scalar_String(
  25. value: A.php
  26. )
  27. type: TYPE_REQUIRE (3)
  28. )
  29. 3: Expr_Include(
  30. expr: Scalar_String(
  31. value: A.php
  32. )
  33. type: TYPE_REQURE_ONCE (4)
  34. )
  35. 4: Expr_Eval(
  36. expr: Scalar_String(
  37. value: A
  38. )
  39. )
  40. )