Growing the PHP Core - One Test at a Time
summary
Clone and compile PHP, run tests with make test -j10 and write a PHPT that fakes headers via the test runner’s env section; the concrete bug is testing select_output_encoding (gzip vs false) and discovering headers-already-sent and copy‑on‑write superglobals issues. The demo runs ~21,000 tests (17,000 executed) with 99.9% passing, fixes the test by buffering output and setting env vars, and lands as a committed PHPT using the PHPT file format so the change actually ships in PHP 7.3.
AI-written summary · about
