TGViewer
Daniil Gentili's news channel Daniil Gentili's news channel @daniilgentili · 435 subscribers
Post #734 315

Forwarded from Daniil Gentili

Psalm is one of the biggest and most powerful PHP Static analysis tools, featuring exclusive features like security analysis, and in Psalm 6.9, an official, hyperoptimized Docker image was introduced.

Psalm’s docker image uses a custom build of PHP built from scratch with a custom deepbind patch and the jemalloc allocator, running Psalm +30% faster on average than normal PHP (+50% faster if comparing to PHP without opcache installed).

Recently, my deepbind patch was also merged into PHP and will be available to all users (even those not using the Docker image) in PHP 8.5!

To use it right now, on PHP 8.4, simply run:

docker run -v $PWD:/app --rm -it ghcr.io/danog/psalm:latest /composer/vendor/bin/psalm --no-cache


Issues due to missing extensions can be fixed by enabling them in psalm.xml and/or requiring them in composer.json, see here for more info.

Extensions not stubbed by Psalm itself (and thus not available as a psalm config option) may be stubbed using traditional PHP stubs.

Also posted on the blog: https://blog.daniil.it/2025/07/10/official-psalm-docker-image/
GitHub Do not use RTLD_DEEPBIND if dlmopen is available by danog · Pull Request #18612 · php/php-src This pull request disables usage of RTLD_DEEPBIND if dlmopen is available. Context: Php8.1 with alternative malloc allocators #10670 - The issue this PR fixes, using RTLD_DEEPBIND with custom allo...
More from @daniilgentili
  1. Mar 1, 2026MadelineProto was updated (8.6.3)! Features: - Update to layer 222 (the server is currentl…
  2. Aug 2, 2025MadelineProto was updated (8.5.4)! The server-side issues with newer layers that forced a…
  3. Jul 10, 2025Also announcing the public beta of Psalm v7! Psalm v7 brings huge performance improvements…
  4. Jul 10, 2025Was visited by a small guest today, sat right next to me for about five minutes, blinking…
  5. May 11, 2025Psalm v6 Deep Dive: Copy-on-Write + dynamic task dispatching Psalm is one of the biggest a…
  6. May 11, 2025Daniil Gentili's news channel pinned «Happy to announce I've launched a blog, where I'll b…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →