php错误提示:Call-time pass-by-reference has been deprecated

今天在写引用时突然出现了Warning: Call-time pass-by-reference has been deprecated – argument passed by value; If you would like to pass it by reference, modify the declaration of getimagesize(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer错误,后来才知道原因是此方法已不被赞成并在 PHP/Zend 未来的版本中很可能不再支持了

解决办法

第一种方法、 把php.ini的display_errors = on改成display_errors = off (不显示错误)

第二种方法、allow_call_time_pass_reference = Off 变成 allow_call_time_pass_reference = On

上面是对php.ini进行修改,但是如果你没有权限可以修改程序,下面我举个简单的例子,可能出现问题的代码如下:

  1. function test1($a,$b){ 
  2. $b = "fun_test1"
  3. return
  4. $a = "a_value"
  5. $b = "b_value"
  6. test1($a,&$b); 

不会有问题出现代码如下:

  1. function test2($a,&$b){ 
  2. $b = "fun_test2"
  3. return
  4. $a = "a_value"
  5. $b = "b_value"
  6. test2($a,$b); 
波比源码 – 精品源码模版分享 | www.bobi11.com
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 本站源码并不保证全部能正常使用,仅供有技术基础的人学习研究,请谨慎下载
8. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!

波比源码 » php错误提示:Call-time pass-by-reference has been deprecated

106 评论

  1. buy spironolactone 100mg pill diflucan price diflucan usa

  2. tadalafil kaufen für männer cialis 20mg kaufen viagra kaufen ohne rezept

  3. order zyprexa sale brand bystolic buy valsartan without prescription

  4. losartan pills nexium oral topiramate 200mg drug

  5. poker online real money free ed pills buy tadalafil 40mg pills

  6. cheap terbinafine 250mg generic cefixime buy trimox 250mg for sale

  7. purchase coreg online elavil pills buy elavil sale

  8. fenofibrate 200mg without prescription sildenafil price buy viagra pills

  9. order deltasone 20mg online generic amoxil 250mg buy amoxicillin 1000mg without prescription

  10. Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across.

  11. buy vibra-tabs generic zovirax brand acyclovir for sale online

  12. uroxatral 10mg over the counter buy uroxatral diltiazem online buy

  13. order gabapentin 600mg pill lasix 40mg pill cost doxycycline

  14. generic albendazole 400 mg provera 10mg sale how to buy medroxyprogesterone

  15. buy methotrexate reglan 10mg pill order metoclopramide online cheap

  16. xenical 60mg canada xenical cost generic zyloprim

  17. order losartan 50mg for sale esomeprazole uk topiramate sale

  18. buy toradol for sale toradol price buy generic propranolol for sale

  19. cost cialis 20mg buy viagra sildenafil 100mg canada

  20. buy cleocin 300mg online fildena cheap buy sildenafil 100mg pill

  21. asacol for sale online azelastine drug order irbesartan 150mg sale

  22. lamotrigine pill prazosin cost how to buy minipress

  23. buy cheap antivert cheap spiriva buy minocycline 50mg pill

  24. where to buy over the counter ed pills order cialis 10mg tadalafil 20mg over the counter

  25. oxybutynin order elavil tablet buy fosamax online cheap

  26. order oxcarbazepine 600mg without prescription alfuzosin for sale cheap urso 300mg

  27. order bisoprolol generic indapamide 2.5mg us buy generic terramycin over the counter

评论已关闭

Hi, 如果你对这款模板有疑问,可以跟我联系哦!

联系站长
赞助VIP 享更多特权,建议使用 QQ 登录
喜欢我嘛?喜欢就按“ctrl+D”收藏我吧!♡