PHP在升级到5.5时,程序执行过程中出现如下错误讯息:

 

1  Fatal error:Call-time pass-by-reference has been removed

 

即新版本已经不允许在函数调用时,采用引用的方式,如 getFormMethod(&$method),

这样的参数传递方式已经不被允许,可以在函数定义时写

1 function getFormMethod(&$method)
2 {
3   $method = 'getValue';
4 }

 

        

调用时

1 getFormMethod($method);

 

      

相关文章:

  • 2021-10-26
  • 2021-04-07
  • 2021-06-20
  • 2022-01-08
  • 2021-10-18
  • 2022-12-23
  • 2021-06-11
猜你喜欢
  • 2021-08-07
  • 2022-03-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2021-12-11
相关资源
相似解决方案