Skip to content

PHP8.4存在弃用警告 #421

@twsh0305

Description

@twsh0305

例如
json_decode(): Passing null to parameter #1 ($json) of type string is deprecated
PHP8.4对json_decode()函数进行了严格类型限制,第一个参数不再接受null(必须是字符串类型),而代码中多处直接将可能为null的变量传入json_decode(),触发了该废弃警告/报错。
同时因为部分宝塔面板版本的BUG,解压不能把root变为www,这到导致覆盖程序更新会导致sql是root权限,无法更新到数据库

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions