Skip to content

Incorporate pocketarc 3.4.5: highlight_code() on PHP 8.3+, JSON MIME - #20

Merged
NielBuys merged 2 commits into
developfrom
tasks/pocketarc-3.4.5
Oct 6, 2026
Merged

NielBuys merged 2 commits into
developfrom
tasks/pocketarc-3.4.5

Conversation

@NielBuys

@NielBuys NielBuys commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Incorporates the outstanding items from pocketarc/codeigniter 3.4.5. Full review: docs/todo/archive/pocketarc-3.4.5-incorporation.md.

Changes

Not included

  • create_sid(), the xml_parser_free() guards, the updateTimestamp typo and the .gitignore entry. Already present in this fork.
  • PHP 8.6 CI matrix and tests/patch-vendor.php (pocketarc PR _compile_session_data() is not "private" in Profiler bcit-ci/CodeIgniter#56). Deferred until PHP 8.6 is released. These are test files only; nothing under system/.
  • CI_VERSION. pocketarc's 3.4.x numbering does not apply here. The fork's own 3.1.13-dev lagging the 3.1.23 tag is recorded in the review as a separate decision.

Testing

  • PHP 8.5.4: test_highlight_code and test_is_allowed_filetype pass.
  • Full suite: one failure, in Calendar_test::test_generate. The same failure occurs on develop without these changes.
  • Running Text_helper_test on its own errors in test_highlight_phrase (UTF8_ENABLED undefined). That happens without these changes too, and does not occur in the full suite.

🤖 Generated with Claude Code

NielBuys and others added 2 commits October 6, 2026 21:01
highlight_code() only stripped its internally appended "?>" from the
pre-8.3 highlight_string() markup. On PHP 8.3+ (<pre><code> output) the
tag was left in place, so every query shown by the profiler ended in a
stray "?>". The regex now matches both formats; the pre-8.3 branch is
the original pattern, so older output is unchanged (pocketarc PR bcit-ci#54,
issue bcit-ci#51). The test that asserted the duplicated tag is corrected, and
a no-PHP-tags case (the profiler's input) is added.

Accept text/plain for .json uploads in the template mimes.php, as finfo
on Windows detects JSON that way (pocketarc PR bcit-ci#58, issue bcit-ci#57). Existing
applications keep their own mimes.php and are unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Status updated to applied in 75e7411; PHP 8.6 test infrastructure
recorded as deferred until PHP 8.6 is released.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NielBuys
NielBuys merged commit 7e26e2e into develop Oct 6, 2026
156 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant