← Home ← Codex ← DEBT
Browse by Category
+ added · updated 7d
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Symbol Table Resolution PHP 5.3+
The compiler phase that maps identifiers (variables, functions, classes) to their declarations, scopes, and types during semantic analysis.
3w ago Compiler advanced
Regex Conditional Patterns PHP 4.0+ 🧠 1
Conditional regex constructs like (?(1)yes|no) match different subpatterns depending on whether an earlier group captured.
3w ago Regex advanced
Regex Branch Reset Groups 🧠 1
A PCRE-specific construct (?|...) that resets capture group numbers across each alternative, so all branches share the same group indices.
2mo ago Regex advanced
Insecure Deserialization
Deserializing attacker-controlled data can trigger arbitrary object construction and method calls — PHP's unserialize() with untrusted input enables remote code execution via gadget chains in the loaded class graph.
CWE-502 OWASP A8:2021
3mo ago Security advanced
Mutex vs Semaphore PHP 7.0+ 🧠 1
A mutex allows only one thread to access a resource at a time — a semaphore controls access to a pool of N identical resources.
CWE-362
3mo ago Concurrency advanced
Diagram: PHP Fibers — Internals & Scheduler Patterns PHP Fibers — Internals & Scheduler Patterns PHP 8.1+
How PHP Fibers work under the hood — stack allocation, suspension mechanics, and how to build a cooperative multitasking scheduler on top of the Fiber API introduced in PHP 8.1.
3mo ago PHP advanced
Abstract readonly Properties PHP 8.4+
PHP 8.4 allows abstract readonly properties in abstract classes and interfaces — defining that implementations must provide a readonly property of a specific type.
3mo ago PHP advanced
Apache Kafka Fundamentals PHP 7.0+
A distributed event streaming platform that stores messages as an immutable ordered log partitioned across a cluster — optimised for high-throughput, durable, replayable event streams rather than traditional task queues.
3mo ago Messaging advanced
CQRS Pattern PHP 7.0+
Command Query Responsibility Segregation — separating the write model (commands that change state) from the read model (queries that return data), allowing each to be optimised independently.
3mo ago Messaging advanced
DNF Types (PHP 8.2) PHP 8.2+
PHP 8.2 DNF (Disjunctive Normal Form) types allow unions of intersections — (Countable&Iterator)|null — combining PHP 8.1 intersection types with union types.
3mo ago PHP advanced
FFI — Foreign Function Interface (PHP 7.4) PHP 7.4+
PHP 7.4 FFI allows calling C functions and accessing C data structures directly from PHP — enabling Python-like ctypes integration for native libraries without writing C extensions.
3mo ago PHP advanced
Fibers — Cooperative Concurrency (PHP 8.1) PHP 8.1+
PHP 8.1 Fibers enable cooperative multitasking — suspending execution at yield points and resuming later — the foundation for async PHP frameworks without OS threads.
3mo ago PHP advanced
Intersection & DNF Types in Practice PHP 8.1+
PHP 8.1 intersection types (A&B) and PHP 8.2 DNF types ((A&B)|null) allow precise type constraints for objects implementing multiple interfaces.
3mo ago PHP advanced
JIT Compiler Introduction (PHP 8.0) PHP 8.0+
PHP 8.0's JIT (Just-In-Time) compiler compiles hot bytecode to native machine code at runtime — significant gains for CPU-bound tasks, minimal gains for typical web requests.
3mo ago PHP advanced
Null Byte in File Paths (Legacy PHP) PHP 3.0+
Null bytes (%00) in file paths truncated strings at the C level in PHP < 5.3.4 — PHP 5.3.4+ throws a warning, PHP 7 throws ValueError for NUL in paths.
3mo ago Security advanced
OPcache Preloading (PHP 7.4) PHP 7.4+
OPcache preloading (PHP 7.4) compiles PHP files into shared memory at server start — eliminating per-request compilation of framework core files for significant performance gains.
3mo ago PHP advanced
PCNTL Signals in CLI PHP PHP 7.1+ 🧠 7
The PCNTL extension lets CLI PHP scripts handle OS signals (SIGTERM, SIGINT, SIGUSR1) — enabling graceful shutdown and hot reload in long-running daemons.
3mo ago PHP advanced
Property Hooks (PHP 8.4) PHP 8.4+
PHP 8.4 property hooks add get and set accessors directly to property declarations — eliminating the need for explicit getter/setter methods on simple value objects.
3mo ago PHP advanced
Socket Programming with PHP PHP 5.0+ 🧠 1
PHP supports raw socket programming via the Sockets extension (socket_create) and stream sockets (stream_socket_client) — used for custom protocols, WebSocket servers, and network tools.
3mo ago PHP advanced
Swoole & Async PHP PHP 7.4+
Swoole is a PHP extension providing a coroutine-based async runtime — enabling non-blocking I/O, connection pools, and WebSocket servers without Node.js or external message brokers.
3mo ago Concurrency advanced
✓ schema.org compliant