Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TemplateProcessor Persist File After Destruct #2542

Closed
wants to merge 5 commits into from

Conversation

oleibman
Copy link
Contributor

@oleibman oleibman commented Jan 6, 2024

Fix #2539. Inadvertent break in TemplateProcessor behavior with #2475. Deleted temp file on destruct. It will now persist, restoring prior behavior, unless user specifies otherwise in constructor.

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.

Fixes # (issue)

Checklist:

  • I have run composer run-script check --timeout=0 and no errors were reported
  • The new code is covered by unit tests (check build/coverage for coverage report)
  • I have updated the documentation to describe the changes

Fix PHPOffice#2539. Inadvertent break in TemplateProcessor behavior with PHPOffice#2475. Deleted temp file on destruct. It will now persist, restoring prior behavior, unless user specifies otherwise in constructor.
@coveralls
Copy link

coveralls commented Jan 6, 2024

Coverage Status

coverage: 97.213% (+0.001%) from 97.212%
when pulling 4b1844b on oleibman:nounlink
into 050e74e on PHPOffice:master.

@Progi1984 Progi1984 added this to the 2.0.0 milestone Jan 7, 2024
Copy link
Member

@Progi1984 Progi1984 left a comment

Choose a reason for hiding this comment

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

@oleibman Hi, could you update the changelog, please ? And may be a warning in documentation ?

@oleibman
Copy link
Contributor Author

oleibman commented Jan 7, 2024

@Progi1984 I updated change log for 1.2.0 (where break occurred) and 2.0.0 (where it will be fixed). If you have any suggested rewording, or anywhere else you want it made known, let me know. Apologies for creating the problem in the first place.

docs/changes/2.x/2.0.0.md Outdated Show resolved Hide resolved
Copy link
Member

@Progi1984 Progi1984 left a comment

Choose a reason for hiding this comment

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

@oleibman Could you rebase and remove the merge commit ?

@oleibman
Copy link
Contributor Author

oleibman commented Jan 8, 2024

Github says I can't rebase due to merge conflicts. I will just re-create and submit a new PR.

oleibman added a commit to oleibman/PHPWord that referenced this pull request Jan 8, 2024
Replace PR PHPOffice#2542.

Fix PHPOffice#2539. Inadvertent break in TemplateProcessor behavior after PHPOffice#2475. Deleted temp file on destruct. It will now persist after destructor.
@oleibman
Copy link
Contributor Author

oleibman commented Jan 8, 2024

Superseded by #2545.

@oleibman oleibman closed this Jan 8, 2024
Progi1984 pushed a commit that referenced this pull request Jan 8, 2024
* Template Processor Persist File After Destruct

Replace PR #2542.

Fix #2539. Inadvertent break in TemplateProcessor behavior after #2475. Deleted temp file on destruct. It will now persist after destructor.

* Update Change Log
@oleibman oleibman deleted the nounlink branch January 10, 2024 03:23
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.

[DOC] TemplateProcessor behavior changed with 1.2 - temporary file gets deleted while still being used
3 participants