DOM extension reflection version is incorrect

未关闭
#8,038 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@cmb69 已经在做这个了。

开始于 2025年2月4日。

  • #17702 来自 @cmb69 —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
c, php
领域
backend

调研方向

使用 ReflectionExtension("dom") 和 getVersion() 重现该行为,然后检查开放的 pull request #17702 以了解当前的工作。将 DOM 扩展的结果与预期的 PHP 版本进行比较,并验证 issue 中报告的输出已得到修正。

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

描述

Bug Extension: dom Status: Verified
Description

Getting the DOM extension version from the reflection API results in "20031129" no matter which PHP version is used: https://3v4l.org/VIJKY
I would expect it to behave like other bundled extensions and track the PHP version: https://3v4l.org/iNi1B

The following code:

<?php

$domExtReflection = new ReflectionExtension("dom");
var_dump($domExtReflection->getVersion());

Resulted in this output:

string(8) "20031129"

But I expected this output instead:

string(5) "8.1.2"
PHP Version

8.1.2

Operating System

No response

主要语言
C
星标
40.4k
派生
8.2k
平均合并
2 天 15 小时
30 天内合并 PR
103

贡献指南

打开贡献指南

从这里开始

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

php/php-src 的其他 Issue

查看 php/php-src 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

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