Case study 01 · Japanese manufacturer · 2 sites
Finding a silent contact-form failure before a PHP 8.4 launch
Every inquiry would have vanished on PHP 8. I found the bug before launch, and both sites now deliver every email with zero errors.
- 0 → 2emails delivered per inquiry
- 2sites upgraded: corporate and recruitment
- 0errors, warnings, or deprecations
- ScanPHPCompatibility on both codebases
- RebuildTest databases from the schemas
- ProveReal emails through a local mail server
- Verify0 errors with every warning on
PHP 8.4
Fegg framework
PHPMailer
SQLite
PHPCompatibility
Git
- Problem
- A Japanese manufacturer's corporate website and its separate recruitment site had to move to PHP 8.4. The pages loaded, but the corporate site's code had a hidden problem: its contact form read two form fields that didn't exist. PHP 7 ignored this, but on PHP 8 every inquiry would end on a blank page with no email sent to the customer or the company. Uploads without a file also crashed, and local testing showed dozens of deprecation warnings.
- What I did
- Scanned both codebases with PHPCompatibility, built test databases from each project's schemas, and ran the sites with every error type switched on from the start. To test the forms for real, I ran the contact and job-entry forms through the actual PHPMailer code path against a local mail server, comparing the original and fixed code. I guarded the missing form fields, fixed the upload and CMS crashes, and cleared every deprecation by declaring each class property explicitly. The recruitment site had already been partly upgraded, so I confirmed what was done and patched only what was left.
- Result
- The corporate contact form went from sending 0 emails to delivering both the customer auto-reply and the admin notice, and the recruitment entry form delivered both emails too. Every page, CMS screen and form on both sites runs on PHP 8.4, and full test runs with every warning switched on produced zero errors, warnings or deprecations.