美文网首页
PHP报错收集(陆续更新)

PHP报错收集(陆续更新)

作者: 七里小晴天 | 来源:发表于2016-08-19 14:31 被阅读37次

1.错误(2016.08.19)

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

PHP在升级到5.5时,程序执行过程中会出现以上错误讯息,即新版本已经不允许在函数调用时,采用引用的方式,如

 getFormMethod(&$method)

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

function getFormMethod(&$method){}

2.错误(2016.10.02)

:session_start(): Cannot send session cache limiter - headers already sent 

session_start() 要求之前没有任何输出给客户端浏览器
因为在前面为了查看某些变量的值使用了var_dump和echo

相关文章

网友评论

      本文标题:PHP报错收集(陆续更新)

      本文链接:https://www.haomeiwen.com/subject/vgybsttx.html