Skip to content

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
@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

Development

Successfully merging this pull request may close these issues.

Fatal error: Uncaught --> Smarty: Unable to write file [file_path] thrown in C:\[project_path]\vendor\smarty\smarty\src\Smarty.php on line 1732

3 participants