Skip to content

Incorporate pocketarc 3.4.4: get_dir_file_info() guard and Edge UA test - #19

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

NielBuys merged 2 commits into
developfrom
tasks/pocketarc-3.4.4

Conversation

@NielBuys

@NielBuys NielBuys commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Incorporates the outstanding items from pocketarc/codeigniter 3.4.4. Two of its four items (write_log() $result init, Edge UA config entries) were already in this repository.

Changes

Notes

  • is_browser() matches on the config key, not the label: for modern Edge, is_browser('Edg') is TRUE and is_browser('Edge') is FALSE. Inherited from upstream, not changed here; the test asserts it.
  • Deferred: changing the get_dir_file_info() keys to relative paths (which would fix same-name files in different subdirectories overwriting each other). It is a contract change and needs a separate decision.

Testing

  • UserAgent_test and File_helper_Test pass.
  • Full suite: one failure in Calendar_test, which also fails on the base commit without these changes (looks date-dependent).
  • No unit test for the helper guard: get_dir_file_info() calls realpath(), which does not resolve vfs:// paths, and dangling symlinks need elevated privileges on Windows.

🤖 Generated with Claude Code

NielBuys and others added 2 commits October 6, 2026 20:44
get_dir_file_info() wrote 'relative_path' onto the return of
get_file_info() without checking it; for a broken symlink that is FALSE,
triggering the PHP 8.1 "automatic conversion of false to array"
deprecation (fatal in PHP 9). Such entries are now skipped. Array keys
are unchanged, so there is no BC break (pocketarc PR bcit-ci#48, issue bcit-ci#47).

Port test_edge() from pocketarc PR bcit-ci#50 to pin Edge vs Chrome detection
order, adjusted for the local 'Edge Legacy (Spartan)' label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Status updated to applied in 7d67695. Add docs/todo/archive/ for
review notes whose status is final.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NielBuys
NielBuys merged commit 3911934 into develop Oct 6, 2026
156 checks passed
@NielBuys
NielBuys deleted the tasks/pocketarc-3.4.4 branch October 6, 2026 19:00
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