duanrong0738 2017-02-24 20:57
浏览 39

UwAmp PHP 7的错误

I get errors with some WordPress themes (Layers and Dynamic Website Builder) when using UwAmp and versions of PHP 7. With Layers there is an error about an empty category array and with Dynamic Website Builder, the admin pages cannot be reached (connection reset).

I have UwAmp 3.1 and have tried PHP 7.0.3 and PHP 7.1.1. There are no errors with PHP 5.6.18.

I installed the Visual Studio redistributable when I installed UwAmp. At first, I thought it was a problem with the Themes and maybe PHP 7.1.1, but I tried PHP 7.0.7 using the Uniform Server and those themes worked fine. That lead me to conclude it is more likely related to UwAmp.

There are no related errors in the Apache log and even though logging is enabled for PHP and I specified a log file in the INI file, there are no PHP error logs. I have not enabled or disabled any PHP extensions.

I suspect it may be something missing from the UwAmp versions of PHP 7.x. Any ideas?

Thanks.

  • 写回答

1条回答 默认 最新

  • duancheng6221 2017-03-08 01:49
    关注

    So it is not an issue with UwAmp. I found that there was a change with PHP 7.1 where empty string arrays must be initialized. Previously PHP would handle it automagically. You can see a discussion of it here: https://github.com/spotweb/spotweb/issues/243

    评论

报告相同问题?

悬赏问题

  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画