[php-src] PR #18527: Fix visibility of whitespace in config output
| From: | schneems | Date: | Fri, 09 May 2025 14:06:01 +0000 |
| Subject: | [php-src] PR #18527: Fix visibility of whitespace in config output | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-31658@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18527
Author: schneems
When a config var has whitespace (especially trailing whitespace) it is hard to see. This commit
wraps the values (if they exist) in backticks so the difference is visually observable:
Before:
```
$ export PHP_INI_SCAN_DIR="/opt/homebrew/etc/php/8.4/conf.d "
$ ./sapi/cli/php --ini
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File: /opt/homebrew/etc/php/8.4/conf.d
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
```
> Note
> The above output has trailing whitespace that is not visible, you can see it if you copy it
> into an editor:
After:
```
$ ./sapi/cli/php --ini
Configuration File (php.ini) Path:
/usr/local/lib
Loaded Configuration File: /opt/homebrew/etc/php/8.4/conf.d
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
```
Above the whitespace is visible /opt/homebrew/etc/php/8.4/conf.d .
Close #18390