Skip to content

Conversation

oleibman
Copy link
Collaborator

Fix #4451. The reporter's analysis is correct - the method has a bug. The solution is relatively easy. Nevertheless, proving that the fix works as desired is tricky. The submitter's Reflection test is good, but it would be better to find one within Excel. My additional tests are contrived, for reasons explained in the test member. So, I will leave this as a work in progress while I search for something better. If that search doesn't succeed, I will nevertheless merge this in about a month.

This is:

  • a bugfix
  • a new feature
  • refactoring
  • additional unit tests

Checklist:

  • Changes are covered by unit tests
    • Changes are covered by existing unit tests (SUMPRODUCT and Gnumeric and Ods ArrayFormulaTest)
    • New unit tests have been added
  • Code style is respected
  • Commit message explains why the change is made (see https://github.com/erlang/otp/wiki/Writing-good-commit-messages)
  • CHANGELOG.md contains a short summary of the change and a link to the pull request if applicable
  • Documentation is updated as necessary

oleibman added 2 commits May 16, 2025 20:46
Fix PHPOffice#4451. The reporter's analysis is correct - the method has a bug. The solution is relatively easy. Nevertheless, proving that the fix works as desired is tricky. The submitter's Reflection test is good, but it would be better to find one within Excel. My additional tests are contrived, for reasons explained in the test member. So, I will leave this as a work in progress while I search for something better. If that search doesn't succeed, I will nevertheless merge this in about a month.
@oleibman oleibman marked this pull request as draft May 17, 2025 03:57
@kikik-dev
Copy link

❤️

@oleibman oleibman marked this pull request as ready for review June 18, 2025 06:29
@oleibman oleibman changed the title WIP Bug in resizeMatricesExtend Bug in resizeMatricesExtend Jun 18, 2025
@oleibman
Copy link
Collaborator Author

Month is up. I have made no progress on a better test case, but need to move forward with the fix anyhow.

@oleibman oleibman added this pull request to the merge queue Jul 4, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 4, 2025
@oleibman oleibman added this pull request to the merge queue Jul 4, 2025
Merged via the queue into PHPOffice:master with commit b271cbf Jul 4, 2025
13 of 14 checks passed
@oleibman oleibman deleted the issue4451 branch July 4, 2025 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Callculation::resizeMatricesExtend() overwrites all rows in the smaller matrix.

2 participants