Skip to content

Commit 7dd20fc

Browse files
committed
Avoid hardcoding the PHP binary location
1 parent c31afda commit 7dd20fc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

layers/console/bootstrap.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ do
1212

1313
# We redirect stderr to stdout so that everything
1414
# written on the output ends up in Cloudwatch automatically
15-
/opt/bin/php "/opt/bref/bootstrap.php" 2>&1
15+
php "/opt/bref/bootstrap.php" 2>&1
1616
else
1717
# A wrapper script is configured
1818
# See https://docs.aws.amazon.com/lambda/latest/dg/runtimes-modify.html#runtime-wrapper
1919
# NOTE: EXPERIMENTAL FEATURE, DO NOT USE!!!
2020
# Note: If you do use it, open an issue or GitHub discussion or Slack thread
2121
# and let us know why it's useful to you, we might turn it into an official feature
22-
"${EXPERIMENTAL_AWS_LAMBDA_EXEC_WRAPPER}" /opt/bin/php "/opt/bref/bootstrap.php" 2>&1
22+
"${EXPERIMENTAL_AWS_LAMBDA_EXEC_WRAPPER}" php "/opt/bref/bootstrap.php" 2>&1
2323
fi
2424
done

layers/fpm/bootstrap.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ do
1212

1313
# We redirect stderr to stdout so that everything
1414
# written on the output ends up in Cloudwatch automatically
15-
/opt/bin/php "/opt/bref/bootstrap.php" 2>&1
15+
php "/opt/bref/bootstrap.php" 2>&1
1616
else
1717
# A wrapper script is configured
1818
# See https://docs.aws.amazon.com/lambda/latest/dg/runtimes-modify.html#runtime-wrapper
1919
# NOTE: EXPERIMENTAL FEATURE, DO NOT USE!!!
2020
# Note: If you do use it, open an issue or GitHub discussion or Slack thread
2121
# and let us know why it's useful to you, we might turn it into an official feature
22-
"${EXPERIMENTAL_AWS_LAMBDA_EXEC_WRAPPER}" /opt/bin/php "/opt/bref/bootstrap.php" 2>&1
22+
"${EXPERIMENTAL_AWS_LAMBDA_EXEC_WRAPPER}" php "/opt/bref/bootstrap.php" 2>&1
2323
fi
2424
done

layers/function/bootstrap.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ do
1212

1313
# We redirect stderr to stdout so that everything
1414
# written on the output ends up in Cloudwatch automatically
15-
/opt/bin/php "/opt/bref/bootstrap.php" 2>&1
15+
php "/opt/bref/bootstrap.php" 2>&1
1616
else
1717
# A wrapper script is configured
1818
# See https://docs.aws.amazon.com/lambda/latest/dg/runtimes-modify.html#runtime-wrapper
1919
# NOTE: EXPERIMENTAL FEATURE, DO NOT USE!!!
2020
# Note: If you do use it, open an issue or GitHub discussion or Slack thread
2121
# and let us know why it's useful to you, we might turn it into an official feature
22-
"${EXPERIMENTAL_AWS_LAMBDA_EXEC_WRAPPER}" /opt/bin/php "/opt/bref/bootstrap.php" 2>&1
22+
"${EXPERIMENTAL_AWS_LAMBDA_EXEC_WRAPPER}" php "/opt/bref/bootstrap.php" 2>&1
2323
fi
2424
done

0 commit comments

Comments
 (0)