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>
大佬!
https://www.chengyao.xyz
都 5.0 了,为啥还要升 8.2