菜谱项目

staticProperty.test 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. UVS static access
  2. -----
  3. <?php
  4. A::$b;
  5. $A::$b;
  6. 'A'::$b;
  7. ('A' . '')::$b;
  8. 'A'[0]::$b;
  9. A::$$b;
  10. A::$$c[1];
  11. A::$A::$b;
  12. -----
  13. !!php7
  14. array(
  15. 0: Expr_StaticPropertyFetch(
  16. class: Name(
  17. parts: array(
  18. 0: A
  19. )
  20. )
  21. name: b
  22. )
  23. 1: Expr_StaticPropertyFetch(
  24. class: Expr_Variable(
  25. name: A
  26. )
  27. name: b
  28. )
  29. 2: Expr_StaticPropertyFetch(
  30. class: Scalar_String(
  31. value: A
  32. )
  33. name: b
  34. )
  35. 3: Expr_StaticPropertyFetch(
  36. class: Expr_BinaryOp_Concat(
  37. left: Scalar_String(
  38. value: A
  39. )
  40. right: Scalar_String(
  41. value:
  42. )
  43. )
  44. name: b
  45. )
  46. 4: Expr_StaticPropertyFetch(
  47. class: Expr_ArrayDimFetch(
  48. var: Scalar_String(
  49. value: A
  50. )
  51. dim: Scalar_LNumber(
  52. value: 0
  53. )
  54. )
  55. name: b
  56. )
  57. 5: Expr_StaticPropertyFetch(
  58. class: Name(
  59. parts: array(
  60. 0: A
  61. )
  62. )
  63. name: Expr_Variable(
  64. name: b
  65. )
  66. )
  67. 6: Expr_ArrayDimFetch(
  68. var: Expr_StaticPropertyFetch(
  69. class: Name(
  70. parts: array(
  71. 0: A
  72. )
  73. )
  74. name: Expr_Variable(
  75. name: c
  76. )
  77. )
  78. dim: Scalar_LNumber(
  79. value: 1
  80. )
  81. )
  82. 7: Expr_StaticPropertyFetch(
  83. class: Expr_StaticPropertyFetch(
  84. class: Name(
  85. parts: array(
  86. 0: A
  87. )
  88. )
  89. name: A
  90. )
  91. name: b
  92. )
  93. )