[php-src] Issue #8038: DOM extension reflection version is incorrect
| From: | AndrolGenhald | Date: | Fri, 04 Feb 2022 21:51:46 +0000 |
| Subject: | [php-src] Issue #8038: DOM extension reflection version is incorrect | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239490@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8038
Author: 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
<?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_