A clear walkthrough of how PHP closures implicitly capture $this, even when they don’t use it, and how that can prevent objects from being garbage collected. Also covers what PHP 8.6 will change with automatic static inference.
PHP
Forgot to Update Livewire. Got Hacked
Daniel Petrica tells the story of how an unpatched Livewire vulnerability on a forgotten side project exposed Mailcoach API keys and led to 50,000 spam emails being sent. It is a useful reminder to keep Read more…