Skip to content

fix(Debug): treat zero time as valid timer start - #10569

Merged
paulbalandan merged 3 commits into
codeigniter4:developfrom
gr8man:fix/debug-timer-zero-time
Sep 20, 2026
Merged

paulbalandan merged 3 commits into
codeigniter4:developfrom
gr8man:fix/debug-timer-zero-time

Conversation

@gr8man

@gr8man gr8man commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Description
Timer::start() treated 0.0 as "no value" and silently replaced it with microtime(true). Changed to null coalescing (??) so only null falls back, preserving 0.0 as a valid timer start time.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@carson-codeigniter4 carson-codeigniter4 Bot added the bug Verified issues on the current code behavior or pull requests that will fix them label Sep 18, 2026

@paulbalandan paulbalandan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a changelog entry.

@gr8man
gr8man force-pushed the fix/debug-timer-zero-time branch from b18f1ba to 9ace171 Compare September 19, 2026 19:53
@gr8man
gr8man force-pushed the fix/debug-timer-zero-time branch from 9ace171 to dbbdba8 Compare September 19, 2026 19:54
Comment thread user_guide_src/source/changelogs/v4.7.5.rst Outdated
@paulbalandan
paulbalandan merged commit c21d575 into codeigniter4:develop Sep 20, 2026
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Verified issues on the current code behavior or pull requests that will fix them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants