← Home ← Codex ← DEBT
Browse by Category
+ added · updated 7d
✕ Clear 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
Diagram: PDO Transactions PDO Transactions PHP 5.1+
PDO wraps multiple queries in an atomic unit — either all succeed or all roll back.
2mo ago php intermediate
PDO::ATTR_EMULATE_PREPARES PHP 5.1+
Controls whether PDO sends real prepared statements to the database or emulates them client-side in PHP.
CWE-89 OWASP A3:2021
2mo ago php intermediate
PDOStatement::bindParam() vs bindValue() PHP 5.1+
Two PDO methods for binding variables to placeholders — bindParam() binds by reference (evaluated at execute), bindValue() binds by value (evaluated immediately).
2mo ago php intermediate
PHP Generators PHP 5.5+
Functions using yield that produce values lazily — one at a time — instead of building a complete array in memory.
2mo ago php intermediate
PHP 4 Objects Passed by Value (Pre-5 Gotcha) PHP 4.0+
PHP 4 copied objects on assignment — $b = $a created a full clone. PHP 5+ passes object handles by value (reference semantics). This was the biggest PHP 4 pain point.
2mo ago php intermediate
PHP 8 — Key Features PHP 8.0+
PHP 8.0–8.4 introduced match expressions, named arguments, union types, nullsafe operator, fibers, enums, readonly properties, first-class callables, and a JIT compiler — the most significant evolution of the language since PHP 5.
2mo ago php intermediate
PHP Execution Model — Shared-Nothing Architecture PHP 5.0+
Each PHP request runs in a completely isolated process or thread — no memory, globals, or state is shared between requests. Every request bootstraps the entire application from scratch and discards everything when it ends.
2mo ago php intermediate
PHP SAPI Types (FPM, CLI, Embed) PHP 4.0+
SAPI (Server API) defines how PHP is invoked — php-fpm for web requests, php-cli for commands, embed for C extensions — each has different lifecycle and configuration.
2mo ago php intermediate
PHP Version Upgrade Checklist PHP 5.0+
A systematic PHP upgrade process: check EOL status, run static analysis, update Composer deps, run Rector, test on new version in staging, then deploy — never upgrade directly in production.
2mo ago php intermediate
PHP 5 OOP Revolution — Objects by Reference PHP 5.0+
PHP 5 completely replaced PHP 4's object model — objects became reference-counted handles rather than copies, enabling true OOP with interfaces, abstract classes, visibility, and exceptions.
2mo ago php intermediate
PHP 7 Performance — 2x Faster Than PHP 5.6 PHP 7.0+
PHP 7.0 (2015) delivered roughly double the throughput of PHP 5.6 through a complete rewrite of Zend Engine internals — without requiring any code changes for most applications.
2mo ago php intermediate
PHP Date/Timezone Pitfalls PHP 5.1+
Common PHP date and timezone bugs — relying on date_default_timezone_set(), comparing DateTime objects across timezones, and strtotime() ambiguity.
3mo ago php intermediate
Diagram: PDO PDO PHP 5.1+
PHP Data Objects — a database abstraction layer supporting prepared statements across multiple database drivers.
3mo ago php intermediate
PHP Error Levels & error_reporting PHP 5.0+
PHP's graduated error severity system from E_NOTICE to E_ERROR, controlled by error_reporting and display_errors INI directives.
OWASP A5:2021
3mo ago php intermediate
PHP Extensions Overview PHP 5.0+
PHP's functionality is extended via C extensions — bundled (PDO, cURL, mbstring) or PECL (Redis, Xdebug, Imagick) — loaded via php.ini.
3mo ago php intermediate
PHP References (&$var) PHP 5.0+
References allow multiple variables to point to the same value — powerful but a frequent source of hard-to-debug side effects.
3mo ago php intermediate
Diagram: PHP-FPM PHP-FPM PHP 5.3+ 🧠 2
PHP FastCGI Process Manager — a high-performance PHP process manager that manages worker pools for web servers like Nginx.
3mo ago php intermediate
php.ini Security Settings PHP 5.0+ 🧠 5
Critical php.ini directives that harden PHP applications by disabling dangerous features and restricting runtime behaviour.
OWASP A5:2021
3mo ago php intermediate
preg_match() / preg_replace() PHP 5.0+
PHP's PCRE regex functions — powerful but prone to ReDoS if patterns are not carefully constructed.
3mo ago php intermediate
Property Hooks (PHP 8.4) PHP 8.4+
PHP 8.4 allows get and set hooks directly on class properties — replacing boilerplate getter/setter methods with inline logic on the property declaration.
3mo ago php intermediate
✓ schema.org compliant