菜谱项目

byRef.test 753B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Return and pass by ref
  2. -----
  3. <?php
  4. function a(&$b) {}
  5. function &a($b) {}
  6. -----
  7. array(
  8. 0: Stmt_Function(
  9. byRef: false
  10. name: a
  11. params: array(
  12. 0: Param(
  13. type: null
  14. byRef: true
  15. variadic: false
  16. name: b
  17. default: null
  18. )
  19. )
  20. returnType: null
  21. stmts: array(
  22. )
  23. )
  24. 1: Stmt_Function(
  25. byRef: true
  26. name: a
  27. params: array(
  28. 0: Param(
  29. type: null
  30. byRef: false
  31. variadic: false
  32. name: b
  33. default: null
  34. )
  35. )
  36. returnType: null
  37. stmts: array(
  38. )
  39. )
  40. )