Skip to content

DOM extension reflection version is incorrect #8038

Open
@AndrolGenhald

Description

@AndrolGenhald

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions