2017-09-21 11:16
浏览 46

PHP 7.1.9可移植webserver问题

So I have a Portable Webserver program called USBWebserver, because the original program still uses php 5.3 (I believe) I went on an adventure to upgrade it so that not only me but the rest of my class can use it.

  • I upgraded the Apache server build to 2.4.27
  • I upgraded the PHP binary to 7.1.9

The thing is... Everything functions but one thing: For some reason MBString (Yes, just MBString) will not start up with a variable path anymore. If I set a manual path it functions it just no longer does this with a variable one.

Before people say:"Then why don't you just make it a manual path and be done with it." because it needs to stay portable and usable "out of the box" so to say.

I am quite stuck on how to fix this issue. If any info is needed, please ask and I will edit this post with the info. (Like if you need php.ini)

图片转代码服务由CSDN问答提供 功能建议

所以我有一个名为USBWebserver的可移植Web服务器程序, 因为原始程序仍然使用php 5.3(我相信)我 继续冒险升级它,不仅是我,而且我班上的其他人都可以使用它。

  • 我将Apache服务器版本升级到2.4.27
  • 我将PHP二进制文件升级到7.1.9

    事情是......所有功能只有一件事: 由于某种原因MBString (是的,只是MBString)将不再启动变量路径。 如果我设置了一个手动路径,它就会起作用,只是不再使用变量路径。

    在人们说:“那你为什么不把它作为手动路径并完成它。” 因为它需要保持便携性并且可以“开箱即用”这样说。

    我完全不知道如何解决这个问题。 如果需要任何信息,请询问,我将使用信息编辑此帖子。 (如果你需要php.ini)

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • douban5644
    douban5644 2017-09-21 12:51

    After a lot more messing about with it I finally found out what fixed this issue. I'll post it here so that others who might try to do this won't have this hurdle to combat.

    extension_dir's path at first was "php\ext" as php.exe wasn't liking that I changed it to ext, which php.exe liked but apache...not so much.

    After a long while I changed the path to extension_dir = ".\php\ext" and as if the gate of heaven opened... it functioned. Fully and completely without even one error.

    So now I have a modified USBWebserver running:

    • PHP 7.1.9
    • Apache 2.4.27
    • PHPMyAdmin
    • MySQL 5.6.13

    Fully portable, fully fuctional. I hope this little tid bit of info helps someone else some day and if some people want the program, ask and I will make a download link and edit it into my original post any this answer.

    点赞 评论