Skip to content

Commit

Permalink
chore(pecl): rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
Frzk committed Jul 11, 2023
1 parent 16eb982 commit 4527a82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/pecl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

function php::pecl::enable_pecl_extension() {
function php::pecl::enable_extension() {
local rc=0
local known_zend_extensions=("scoutapm")

Expand Down Expand Up @@ -65,7 +65,7 @@ function php::pecl::install_from_cache() {
if [ -f "${cached_file}" ]; then
cp "${cached_file}" "${ext_dir}/${name}.so"

php::pecl::enable_pecl_extension "${name}"
php::pecl::enable_extension "${name}"
rc="${?}"
fi

Expand Down Expand Up @@ -307,7 +307,7 @@ function php::pecl::install_extension() {

popd >/dev/null || return 1

if ! php::pecl::enable_pecl_extension "${extension_name}"; then
if ! php::pecl::enable_extension "${extension_name}"; then
echo "Unable to activate PECL extension '${extension_name}' ${version_number}. Aborting." >&2
return 1
else
Expand Down

0 comments on commit 4527a82

Please sign in to comment.