[php-src] Issue #8168: `php --version` should show JIT status
| From: | mvorisek | Date: | Fri, 04 Mar 2022 09:28:55 +0000 |
| Subject: | [php-src] Issue #8168: `php --version` should show JIT status | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240178@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8168
Author: mvorisek
### Description
Opcache & JIT status is major information (together with the php version) for figuring out php
issues.
A lot of projects use
php --version cmd to dump the info in CI and the output looks
like:
```
PHP 8.1.3 (cli) (built: Feb 18 2022 20:24:18) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.3, Copyright (c) Zend Technologies
with Zend OPcache v8.1.3, Copyright (c), by Zend Technologies
Composer version 2.2.7 2022-02-25 11:12:27
```
this is a feature request to add JIT status to this info like:
```diff
PHP 8.1.3 (cli) (built: Feb 18 2022 20:24:18) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.3, Copyright (c) Zend Technologies
- with Zend OPcache v8.1.3, Copyright (c), by Zend Technologies
+ with Zend OPcache v8.1.3 /w JIT (tracing), Copyright (c), by Zend Technologies
Composer version 2.2.7 2022-02-25 11:12:27
```
so the JIT status & its configuration is present.