You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make php -a history conform to XDG Base Directory Specification
ResolvesGH-8546.
To keep existing installations working the code first checks if a
history file already exists at `~/.php_history`. If it does, then
everything works as before.
If `~/.php_history` does not exist, we check whether the system supports
the XDG Base Directory Specification. If it doesn't we continue using
`~/.php_history`; otherwise, we use a path that conforms to the XDG Base
Directory Specification.
We detect support for XDG Base Directory Specification by checking for
environment variables that start with the `XDG_` prefix. This is
analogous to what Composer does:
composer/composer#1407
The specification can be found here:
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
0 commit comments