php-src/sapi
Richard Schneeman 331ac35f58
Fix visibility of whitespace in config output (#18527)
When a config var has whitespace (especially trailing whitespace) it is hard to see. This commit wraps the values (if they exist) in double quotes, 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 now visible `/opt/homebrew/etc/php/8.4/conf.d         `.

Close #18390
2025-05-11 14:53:56 +01:00
..
apache2handler sapi/apache2handler/php_functions.c: No need to rely on argnum (#16143) 2024-09-30 22:09:17 +01:00
cgi Drop support for -z CLI/CGI option 2025-03-03 08:21:56 +01:00
cli Fix visibility of whitespace in config output (#18527) 2025-05-11 14:53:56 +01:00
embed Merge branch 'PHP-8.3' into PHP-8.4 2025-03-12 08:58:54 +01:00
fpm Fix GH-17645: FPM with httpd ProxyPass does not decode script path 2025-03-25 19:19:55 +01:00
fuzzer Fix fuzzer support after CALL VM changes (#18491) 2025-05-04 13:25:42 +02:00
litespeed Merge branch 'PHP-8.4' 2025-04-27 12:00:31 -04:00
phpdbg [RFC] Add support for attributes on compile-time constants 2025-04-29 11:53:09 -07:00