Files
server/opt/plesk/phpenv/libexec/phpenv-version
2026-01-07 20:52:11 +01:00

12 lines
317 B
Bash
Executable File

#!/usr/bin/env bash
# Summary: Show the current PHP version and its origin
#
# Shows the currently selected PHP version and how it was
# selected. To obtain only the version string, use `phpenv
# version-name'.
set -e
[ -n "$PHPENV_DEBUG" ] && set -x
echo "$(phpenv-version-name) (set by $(phpenv-version-origin))"