php / php/php-src

sni_server.phpt fails half the time

未关闭
#20,981 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Bug Category: Tests Extension: openssl Status: Needs Triage
主要语言
C
星标
40.4k
派生
8.1k
平均合并
2 天 13 小时
30 天内合并 PR
96

描述

Description
========DIFF========
     string(%d) "cs.php.net"
002- string(%d) "uk.php.net"
003- string(%d) "us.php.net"
002+ 
003+ Warning: Undefined array key "peer_certificate" in /work/php-src/ext/openssl/tests/ServerClientTestCase.inc(191) : eval()'d code on line 16
004+ 
005+ Deprecated: openssl_x509_parse(): Passing null to parameter #1 ($certificate) of type OpenSSLCertificate|string is deprecated in /work/php-src/ext/openssl/tests/ServerClientTestCase.inc(191) : eval()'d code on line 17
006+ 
007+ Warning: Trying to access array offset on false in /work/php-src/ext/openssl/tests/ServerClientTestCase.inc(191) : eval()'d code on line 17
008+ 
009+ Warning: Trying to access array offset on null in /work/php-src/ext/openssl/tests/ServerClientTestCase.inc(191) : eval()'d code on line 17
010+ NULL
011+ 
012+ Warning: Undefined array key "peer_certificate" in /work/php-src/ext/openssl/tests/ServerClientTestCase.inc(191) : eval()'d code on line 22
013+ 
014+ Deprecated: openssl_x509_parse(): Passing null to parameter #1 ($certificate) of type OpenSSLCertificate|string is deprecated in /work/php-src/ext/openssl/tests/ServerClientTestCase.inc(191) : eval()'d code on line 23
015+ 
016+ Warning: Trying to access array offset on false in /work/php-src/ext/openssl/tests/ServerClientTestCase.inc(191) : eval()'d code on line 23
017+ 
018+ Warning: Trying to access array offset on null in /work/php-src/ext/openssl/tests/ServerClientTestCase.inc(191) : eval()'d code on line 23
019+ NULL
========DONE========
FAIL sni_server [/work/php-src/ext/openssl/tests/sni_server.phpt] 
PHP Version
master
Operating System

Ubuntu 24.04

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 ext/openssl/tests/sni_server.phpt 以及 ext/openssl/tests/ServerClientTestCase.inc 中第 191 行附近的相关逻辑开始。在 PHP master 上复现间歇性失败,并检查 peer certificate 不可用的原因。当测试能够可靠运行,且不再出现报告的 warnings 或意外的 NULL 输出时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
php
领域
testing
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。