windows 2003 php5.6,GitHub - d93921012/php-5.6-xp-2003: Run PHP 5.6+ on Windows XP and 2003
发布日期:2021-06-24 11:24:22 浏览次数:2 分类:技术文章

本文共 1294 字,大约阅读时间需要 4 分钟。

Run PHP 5.6+ on Windows XP and 2003

Instead of patching and rebuilding the whole PHP completely, which is a complicated work, this work implements the API functions that are only available after Vista and then patches the import descriptors of the executable files.

The implemented functions are listed as follows.

DLL file

function name

ver. of nonxp.dll

iphlpapi.dll

if_nametoindex

0.0.1.11

kernel32.dll

GetFinalPathNameByHandleA

0.0.2.20

GetFinalPathNameByHandleW

0.0.2.20

GetTickCount64

0.0.1.11

InitializeConditionVariable

0.0.4.40

InitializeCriticalSectionEx

0.0.3.30

SleepConditionVariableCS

0.0.4.40

WakeAllConditionVariable

0.0.4.40

WakeConditionVariable

0.0.4.40

shell32.dll

SHGetKnownFolderPath

0.0.3.30

ws2_32.dll

WSASendMsg

0.0.1.11

inet_ntop

0.0.1.11

inet_pton

0.0.1.11

Patch binary files of PHP

Copy doiatpatch.bat, iatpatcher.exe, and nonxp.dll to the home directory of PHP and then execute doiatpatch.bat.

Original page

The patched php files can be download in the original page: http://www.lindasc.com/php/.

Bugs

The CLI of PHP 7 occurs BUG for unknown reasons; however, its CGI is workable with no BUG.

使用注意事項

在使用 composer 安裝 package 時,有可能裝的 package 無法正常執行。例如 nesbot/carbon 中,針對 PHP 5.6 會使用這樣的運算式 1520833979.6569 * 1000000 % 1000000,正常結果應為 656900,但在此版本中,會因溢位得到 -954812 的錯誤結果。

转载地址:https://blog.csdn.net/weixin_32473663/article/details/115548010 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:php 微信支付宝提现,微信支付对接提现功能(php)
下一篇:php 去掉json外层 方括号,从 JSON 中删除方括号 - WITHOUT_ARRAY_WRAPPER 选项

发表评论

最新留言

第一次来,支持一个
[***.219.124.196]2024年04月13日 04时15分40秒