Repository navigation
v0.12.0
ePHPm v0.12.0
Step debugging, a performance pass, and a broad security + correctness sweep.
Highlights
Xdebug & extension debugging
- Step debugging in worker mode (#552) and
ephpm dev --xdebug(#554), with Zend-extension support in[php] extensions. - New opt-in Windows shared-engine build (
php8ts.dll) so extension DLLs — Xdebug included — load on Windows (#564).
Performance
- mimalloc is now the process-wide allocator on glibc Linux — worker RSS down ~45% (#577).
- Per-thread job handoff replaces the shared dispatch channel (+4% worker throughput ceiling, #578); adaptive spin before a pool thread parks (#582); lower per-request dispatch overhead (+9.7% on the Yii3 ceiling, #575); one
timer_settimeper request instead of four (#581). - New
[server] io_threadssizes the tokio async worker pool (#580).
Security & access control
- Metrics/diagnostics endpoints now enforce access control — ACL, multi-site credential, mTLS listener; preview-gate fails closed (#560).
ephpm execruns the sandboxed command with a cleared environment (#550).- Fixed a KV RESP auth bug: the listener accepted any password on a single-site node with
[kv] secretset (#553). - The published Docker image no longer ships E2E fixtures or test config (#549).
Correctness
gzopen/compress.zlib:///ZipArchivewere broken bylibz-sysshadowing the SDK's zlib — fixed, with a link-time guard (#572).exit()from an exception handler or shutdown function no longer returns a 500 (#571).pdo_sqlitenow serializes correctly under threaded PHP and runs on the SDK's SQLite (#563).- Every
$_SERVERvar is registered (no 128-var cap); realSERVER_SOFTWAREversion (#556). display_errorsdefaults toOffunderephpm serve; PHP's error log routes to ePHPm's log (#551).- macOS binaries export their symbols so shared extensions load (#566).
Config hardening
- Mode typos fail closed instead of silently falling back; unmapped
EPHPM_*vars warn at startup (#557). - Middleware ABI minor 5: node-tenancy flag + optional config-keys symbol for dlopened modules (#469/#480, #569).
Dependencies
- Turso 0.7.2 → 0.8.2 (#570); PHP 8.5 SDK 8.5.7 → 8.5.11 (#574);
quinn-proto/rustlsadvisory clearance (#579).
Plus a large documentation-accuracy audit across config, CLI, PHP, HTTP, middleware and DB docs (#542–#548, #567).
Full changelog (35 PRs)
- ci: cancel superseded PR runs and move cheap gates off the self-hosted queue (#555)
- docs(config): fix [server]/[php]/[[middleware]]/[preview_auth]/env-var audit findings (#543)
- docs(cli): fix CLI docs-audit findings — ephpm exec page, uninstall data loss, install --user, README (#544)
- docs(php): fix PHP-facing API docs from the coverage audit (#547)
- docs(http): document endpoint exposure, metrics gaps, and KV RESP surface (#548)
- docs(middleware): fix middleware, platform-caveat and startup-warning audit findings (#546)
- feat(worker): Xdebug step debugging in worker mode (#552)
- docs(db): fix config part B + DB feature findings from the docs coverage audit (#545)
- fix(exec): run the sandboxed command with a cleared environment (#550)
- fix(docker): stop shipping E2E fixtures and test config in the published image (#549)
- fix(kv): RESP listener accepted any password on single-site with [kv] secret (#553)
- fix(php): default display_errors=Off under ephpm serve; route PHP error log to ePHPm's log (#551)
- docs: audit leftovers after the docs-audit PRs (#543-#548) (#567)
- fix(build): export the binary's symbols on macOS so shared extensions load (#566)
- fix(xtask): refuse a PHP SDK whose headers are a different PHP version (#565)
- fix(security): metrics/diagnostics access control (ACL, multi-site credential, mTLS listener); preview-gate fails closed (#560)
- fix(php): register every $_SERVER var (no 128 cap); real SERVER_SOFTWARE version (#556)
- fix(config,cli): fail closed on mode typos, warn on unmapped EPHPM_* vars, fix install --user, Windows middleware dir, ephpm logs (#557)
- fix(kv): owner-arbitrated SETNX/DELIFEQ in clusters, token-released session lock, kv --host hostnames, loud ephpm_kv_* under ephpm php (#562)
- fix(php): pdo_sqlite serializes under threaded PHP; run it on the SDK's SQLite (#563)
- docs(composer): document what ephpm composer (vivacity 0.17.0) actually does (#542)
- chore(deps): bump turso 0.7.2 -> 0.8.2 (litewire#46) (#570)
- fix(windows): e2e opcache probe path, gate crash_containment on Windows, fail-fast VS Build Tools install (#568)
- feat(middleware): ABI minor 5 node tenancy flag + optional config-keys symbol (#469, #480) (#569)
- fix(php): gzopen/compress.zlib:///ZipArchive broken by libz-sys shadowing the SDK's zlib (#572)
- fix(php): exit() from an exception handler or shutdown function no longer 500s (#571)
- fix(deps): clear quinn-proto + rustls advisories (red Cargo Deny on main) (#579)
- chore(php): bump the PHP 8.5 SDK pin 8.5.7 -> 8.5.11 (#574)
- perf(worker): cut per-request dispatch overhead (+9.7% Yii3 ceiling); release persistent resources on thread retire (#575)
- perf(pool): per-thread job handoff instead of one shared dispatch channel (+4% worker ceiling) (#578)
- perf(alloc): mimalloc as the process-wide malloc on glibc Linux (worker RSS -45%) (#577)
- feat(config): [server] io_threads sizes the tokio async worker pool (#580)
- perf(php): one timer_settime per worker request instead of four (+1.7% worker ceiling) (#581)
- feat(dev): ephpm dev --xdebug + Zend-extension support in [php] extensions (#554)
- perf(pool): adaptive spin before a PHP pool thread parks, on by default in worker mode (#582)
- feat(windows): opt-in shared-engine build (php8ts.dll) so extension DLLs load; dev --xdebug on Windows (#564)
Full Changelog: v0.11.3...v0.12.0