Skip to content

Fixed bug where Result::count was prematurely returned#136

Merged
simon-mundy merged 2 commits intophp-db:0.6.xfrom
simon-mundy:resultset-count-issue
Feb 25, 2026
Merged

Fixed bug where Result::count was prematurely returned#136
simon-mundy merged 2 commits intophp-db:0.6.xfrom
simon-mundy:resultset-count-issue

Conversation

@simon-mundy
Copy link
Collaborator

Q A
Documentation no
Bugfix yes
BC Break no
New Feature no
RFC no
QA yes
House Keeping no

Description

A bug in Result::count() meant that when it was initialized with a value of 0 it was then incorrectly returning 0 when being tested by 'is_int' and therefore reporting incorrect results. Fixed the definition and initialize() to ensure this is properly returned by querying the resource.

Signed-off-by: Simon Mundy <simon.mundy@peptolab.com>
@simon-mundy simon-mundy added this to the 0.6.0 milestone Feb 25, 2026
@simon-mundy simon-mundy requested a review from tyrsson February 25, 2026 05:30
@simon-mundy simon-mundy self-assigned this Feb 25, 2026
@simon-mundy simon-mundy added bug Something isn't working confirmed Has been confirmed by maintainers labels Feb 25, 2026
@github-project-automation github-project-automation bot moved this to Todo in @phpdb Feb 25, 2026
@simon-mundy simon-mundy merged commit 0c68dac into php-db:0.6.x Feb 25, 2026
13 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in @phpdb Feb 25, 2026
@simon-mundy simon-mundy deleted the resultset-count-issue branch February 25, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working confirmed Has been confirmed by maintainers

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant