DEV Community

PHP

Home for all the PHP-related posts on Dev.to!

Posts

👋 Sign in for the ability to sort posts by relevant, latest, or top.
I Added One Key to a PHP Array. It Cost 25 MB of Memory

Reveals PHP hash table internals on version 8.4

I Added One Key to a PHP Array. It Cost 25 MB of Memory

18
Picked as gem Comments 7
16 min read
The backdoor was a database row

The backdoor was a database row

Comments
4 min read
Postgres RLS in Symfony: three green isolation tests, and the UPDATE that moves tenant 1's invoices into tenant 2's books

Postgres RLS in Symfony: three green isolation tests, and the UPDATE that moves tenant 1's invoices into tenant 2's books

Comments
6 min read
Guarding the_content Is Not Enough: Six Routes That Leak Paid Content in a WordPress Paywall

Guarding the_content Is Not Enough: Six Routes That Leak Paid Content in a WordPress Paywall

Comments
6 min read
Building multi-user + security on shared hosting: filesystem as the only state layer

Building multi-user + security on shared hosting: filesystem as the only state layer

Comments
4 min read
Route Website Leads to Telegram Managers in PHP

Route Website Leads to Telegram Managers in PHP

Comments
5 min read
Building SecretGate: A Zero-Knowledge Ephemeral Messaging Engine with Native PHP & Web Crypto API

Building SecretGate: A Zero-Knowledge Ephemeral Messaging Engine with Native PHP & Web Crypto API

Comments
2 min read
wc_get_products() Silently Ignores meta_query: When Your Test Double Is Better Behaved Than the Implementation

wc_get_products() Silently Ignores meta_query: When Your Test Double Is Better Behaved Than the Implementation

Comments
5 min read
Drop session_start() from Your Paywall: HMAC-Signed Cookies and Single-Use Recovery Links

Drop session_start() from Your Paywall: HMAC-Signed Cookies and Single-Use Recovery Links

Comments
7 min read
An LLM API Returned 4.17 Million Characters: Using MD5 Fingerprints to Prove It Was Duplication, Not Generation

An LLM API Returned 4.17 Million Characters: Using MD5 Fingerprints to Prove It Was Duplication, Not Generation

Comments
6 min read
Fixing a cache:clear command that couldn't run and couldn't be trusted

Fixing a cache:clear command that couldn't run and couldn't be trusted

Comments
5 min read
Fixing a silent message-drop bug in Waaseyaa's queue worker

Fixing a silent message-drop bug in Waaseyaa's queue worker

Comments
4 min read
A layer-by-layer workflow to find whether slow WordPress TTFB comes from DNS, caching, PHP workers, database queries, plugins, or cron jobs.

A layer-by-layer workflow to find whether slow WordPress TTFB comes from DNS, caching, PHP workers, database queries, plugins, or cron jobs.

1
Comments
9 min read
4 things WordPress.org made me fix before the review even started

4 things WordPress.org made me fix before the review even started

Comments
3 min read
Stop Writing Massive if-else Blocks: Master the Strategy Pattern in PHP & Laravel

Stop Writing Massive if-else Blocks: Master the Strategy Pattern in PHP & Laravel

Comments
21 min read
👋 Sign in for the ability to sort posts by relevant, latest, or top.