Skip to content

Template Processor setValue ensureUtf8Encoded kills string zero #2772

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

Open
2 tasks
tripulsTPfeffer opened this issue Apr 15, 2025 · 0 comments
Open
2 tasks

Comments

@tripulsTPfeffer
Copy link

Describe the bug and add attachments

When you use TemplateProcessor->setValue('${FOO}', '0'), then the variable is replaced, but with an empty string instead of the given zero.

Expected behavior

TemplateProcessor->setValue('${FOO}', '0') replaces with given zero

Steps to reproduce

TemplateProcessor->setValue('${FOO}', '0')

PHPWord version(s) where the bug happened

1.3.0

PHP version(s) where the bug happened

= 7.4

Priority

  • I want to crowdfund the bug fix (with @algora-io) and fund a community developer.
  • I want to pay the bug fix and fund a maintainer for that. (Contact @Progi1984)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant