Repository navigation
Commit dec67e0
committed
fix(examples): replace phpinfo() with hello world in php examples
The php and php-zip examples called phpinfo() in index.php, which renders
the full PHP environment — including the Lambda-injected AWS_ACCESS_KEY_ID,
AWS_SECRET_ACCESS_KEY, and AWS_SESSION_TOKEN — to anyone hitting the public
endpoint. Users following the examples as-is would expose their function's
temporary execution-role credentials.
Replace the phpinfo() call with a plain-text "Hello, World!" response and
update the php-zip README verification step accordingly.1 parent 48caa3d commit dec67e0
3 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments