Skip to content

feat: update @lando/php to ^1.12.0#185

Merged
AaronFeledy merged 3 commits intomainfrom
test/mod-headers-expires
Mar 8, 2026
Merged

feat: update @lando/php to ^1.12.0#185
AaronFeledy merged 3 commits intomainfrom
test/mod-headers-expires

Conversation

@AaronFeledy
Copy link
Member

@AaronFeledy AaronFeledy commented Mar 7, 2026

Changes

  • Updated @lando/php to ^1.12.0
  • Added mod_headers and mod_expires verification tests

What's in @lando/php v1.12.0

  • Enabled mod_headers and mod_expires Apache modules by default (php#244)
  • Fixed xdebug log file ownership issue when build_as_root or run_as_root creates /tmp/xdebug.log as root (php#242)

The test in this PR verifies that mod_headers and mod_expires are now available by default.


Note

Medium Risk
Updates the underlying @lando/php runtime, which can change default Apache/PHP behavior (now enabling mod_headers/mod_expires) and may affect existing Drupal apps. Test coverage is updated, but runtime dependency bumps can still introduce subtle compatibility issues.

Overview
Updates the plugin’s PHP service dependency to @lando/php@^1.12.0 (and lockfile), aligning with upstream changes including default Apache module enablement and an Xdebug log ownership fix.

Extends the examples/drupal-defaults verification suite by adding a .htaccess and checks that mod_headers and mod_expires are enabled and functional, and notes the upgrade in the CHANGELOG.

Written by Cursor Bugbot for commit 5479128. This will update automatically on new commits. Configure here.

@netlify
Copy link

netlify bot commented Mar 7, 2026

Deploy Preview for lando-drupal ready!

Name Link
🔨 Latest commit 5479128
🔍 Latest deploy log https://app.netlify.com/projects/lando-drupal/deploys/69acdb621ac4430008cb074a
😎 Deploy Preview https://deploy-preview-185--lando-drupal.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 83 (🔴 down 8 from production)
Accessibility: 96 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Known-failing mod_expires test will break CI
    • Removed the mod_expires test from README.md that would fail when the module is not loaded in Apache config, preventing CI failures.

Create PR

Or push these changes by commenting:

@cursor push 22c636c773
Preview (22c636c773)
diff --git a/examples/drupal-defaults/README.md b/examples/drupal-defaults/README.md
--- a/examples/drupal-defaults/README.md
+++ b/examples/drupal-defaults/README.md
@@ -47,9 +47,6 @@
 # Should have mod_headers enabled and working
 lando exec appserver -- curl -sI localhost | grep -i "X-Lando-Test: blazes"
 
-# Should have mod_expires enabled and working
-lando exec appserver -- curl -sI localhost | grep -i "Expires:"
-
 # Should use the correct default config files
 lando exec appserver -- cat /usr/local/etc/php/conf.d/zzz-lando-my-custom.ini | grep "; LANDODRUPALPHPINI"
 lando exec appserver -- curl -L http://localhost/info.php | grep max_execution_time | grep 91

Adds .htaccess to drupal-defaults example that sets a custom header via
mod_headers and enables mod_expires. Adds verification commands to check
for these in curl responses.

These tests validate that Apache modules commonly needed by Drupal
(mod_headers for CORS/security headers, mod_expires for caching) work
out of the box.

Refs: lando/lando#976, lando/apache#2
- Enabled mod_headers and mod_expires Apache modules by default
- Fixed xdebug log ownership issue with build_as_root/run_as_root
@AaronFeledy AaronFeledy force-pushed the test/mod-headers-expires branch from 13119e4 to b6e9499 Compare March 8, 2026 01:51
@AaronFeledy AaronFeledy changed the title test: add mod_headers and mod_expires verification tests feat: update @lando/php to ^1.12.0 Mar 8, 2026
@AaronFeledy AaronFeledy merged commit bfae6d8 into main Mar 8, 2026
48 checks passed
@AaronFeledy AaronFeledy deleted the test/mod-headers-expires branch March 8, 2026 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant