Skip to content

Commit 78b529e

Browse files
committed
Remove default memory limit
Fixes #27
1 parent cc7221d commit 78b529e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ AWS Lambda change log
33

44
## ?.?.? / ????-??-??
55

6+
## 6.1.0 / 2025-07-24
7+
8+
* Removed default memory limit for PHP, let lambda infrastructure take
9+
care of it. See issue #27
10+
(@thekid)
11+
612
## 6.0.0 / 2025-05-04
713

814
* **Heads up:** Dropped support for PHP < 7.4, see xp-framework/rfc#343

src/main/php/xp/lambda/Dockerfile.runtime

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ RUN curl -L https://baltocdn.com/xp-framework/xp-runners/distribution/downloads/
3434
&& chmod 755 /opt/php/bootstrap \
3535
&& head -1 /opt/php/bootstrap | grep '^#!'
3636

37-
RUN cd /opt/php && strip bin/php && zip -9 runtime.zip bin/php bootstrap
37+
RUN echo "memory_limit=-1" > /opt/php/bin/php.ini
38+
39+
RUN cd /opt/php && strip bin/php && zip -9 runtime.zip bin/php bin/php.ini bootstrap

0 commit comments

Comments
 (0)