specialVars.test 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Special function variables
  2. -----
  3. <?php
  4. function a() {
  5. global $a, ${'b'}, $$c;
  6. static $c, $d = 'e';
  7. }
  8. -----
  9. array(
  10. 0: Stmt_Function(
  11. byRef: false
  12. params: array(
  13. )
  14. stmts: array(
  15. 0: Stmt_Global(
  16. vars: array(
  17. 0: Expr_Variable(
  18. name: a
  19. )
  20. 1: Expr_Variable(
  21. name: Scalar_String(
  22. value: b
  23. )
  24. )
  25. 2: Expr_Variable(
  26. name: Expr_Variable(
  27. name: c
  28. )
  29. )
  30. )
  31. )
  32. 1: Stmt_Static(
  33. vars: array(
  34. 0: Stmt_StaticVar(
  35. name: c
  36. default: null
  37. )
  38. 1: Stmt_StaticVar(
  39. name: d
  40. default: Scalar_String(
  41. value: e
  42. )
  43. )
  44. )
  45. )
  46. )
  47. name: a
  48. )
  49. )