我所用的系统都是thinkphp5.0+php5.6,在环境升级到php8.0后需要做一些调整。
1. LDAP拓展调整,重新复制 PHP 目录下的 libsasl.dll 到apache中的bin文件夹中;
2. CURL调整:copy libssh2.dll from C:\php into C:\apache\bin; copy libcrypto-*.dll and libssl-*.dll from C:\php into C:\apache\bin (if it doesn't exist);
3. TP5报错 Cannot redeclare mb_str_split; 删掉mb_str_split
4. TP5报错 Method ReflectionParameter::getClass() is deprecated; 在报错位置调整: $class = $param->getClass();更换为$class = $param->getType();