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

Fix an issue that preventing the use of "extends:" to define the inheritance tree on Windows #1056

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

matsuo
Copy link
Contributor

@matsuo matsuo commented Aug 17, 2024

This PR fixes #1018
And many of the errors detected by #1046 (comment) will be corrected, too.

The filename in #1018 (comment) will have “|” replaced by “.” as follows on Windows only:

[Before]

  • ./tests/UnitTests/ResourceTests/Extends/templates_c/0a382e517fefa510de3f987160291ed9924a7124_0.extends_050_parent.tpl|050_child.tpl|050_grandchild.tpl.php

[After]

  • ./tests/UnitTests/ResourceTests/Extends/templates_c/0a382e517fefa510de3f987160291ed9924a7124_0.extends_050_parent.tpl.050_child.tpl.050_grandchild.tpl.php

How about this fix?
This feels like a quick fix, but seems to solve the issue on Windows.
If we try to match the behavior to v4, the fix will take a bit more work.

(Updated on August 29, 2024) Corrected the result of [After].

@wisskid wisskid merged commit 30c6ee6 into smarty-php:master Aug 28, 2024
11 checks passed
@matsuo matsuo deleted the fix-extends-plugin-for-windows branch August 28, 2024 21:55
@rodriguezny
Copy link

@wisskid thanks for the merge!
When will the new release be out with this fix ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants