includeAndEval.test 995 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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: Stmt_Expression(
  12. expr: Expr_Include(
  13. expr: Scalar_String(
  14. value: A.php
  15. )
  16. type: TYPE_INCLUDE (1)
  17. )
  18. )
  19. 1: Stmt_Expression(
  20. expr: Expr_Include(
  21. expr: Scalar_String(
  22. value: A.php
  23. )
  24. type: TYPE_INCLUDE_ONCE (2)
  25. )
  26. )
  27. 2: Stmt_Expression(
  28. expr: Expr_Include(
  29. expr: Scalar_String(
  30. value: A.php
  31. )
  32. type: TYPE_REQUIRE (3)
  33. )
  34. )
  35. 3: Stmt_Expression(
  36. expr: Expr_Include(
  37. expr: Scalar_String(
  38. value: A.php
  39. )
  40. type: TYPE_REQUIRE_ONCE (4)
  41. )
  42. )
  43. 4: Stmt_Expression(
  44. expr: Expr_Eval(
  45. expr: Scalar_String(
  46. value: A
  47. )
  48. )
  49. )
  50. )