[php-src] Issue #10543: phpversion
| From: | janhanacek1 | Date: | Wed, 08 Feb 2023 13:08:45 +0000 |
| Subject: | [php-src] Issue #10543: phpversion | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-243693@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/10543
Author: janhanacek1
### Description
Function phpversion with extension parameter.
By documentation.
Returns the current PHP version as a string. If a string argument is provided for extension
parameter, phpversion() returns the version of that extension, or false if there is no version
information associated or the extension isn't enabled.
The following code:
```php
<?php
echo phpversion( 'intl' ); // any extension returns php version instead
```
Resulted in this output:
```
8.2.2
```
But I expected this output instead:
```
// version of extension
```
### PHP Version
php 8.2
### Operating System
Debian 11