标题: ThinkPHP5.0.24运行于php8.2(分销主机)
时间: 2023-12-22发布,2023-12-23修改
thinkphp_5.0.24_with_extend.zip(2.35 MB)
getClass()
改为:getType()
随后是一堆错误,基本都是数据类型问题
在\thinkphp\library\think\Paginator.php
增加:use Iterator;
offsetExists($offset)改为 offsetExists($offset):bool
offsetSet($offset, $value)改为 offsetSet($offset, $value):void
offsetGet($offset) 改为 offsetGet($offset):mixed
offsetUnset($offset)改为 offsetUnset($offset):void
getIterator()改为 getIterator(): Iterator|Traversable
count()改为 count():int
jsonSerialize()改为jsonSerialize(): mixed
\thinkphp\library\think\Collection.php
offsetExists($offset)改为 offsetExists($offset):bool
offsetSet($offset, $value)改为 offsetSet($offset, $value):void
offsetGet($offset) 改为 offsetGet($offset):mixed
offsetUnset($offset)改为 offsetUnset($offset):void
getIterator()改为 getIterator():IteratorAggregate
count()改为 count():int
jsonSerialize()改为jsonSerialize(): mixed
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
『回复列表(4|隐藏机器人聊天)』