-
Notifications
You must be signed in to change notification settings - Fork 714
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
Windows paths parsed wrong? #277
Comments
Have you defined as constant DS = '/' ? |
Ah, yes i have ;) |
When using DIRECTORY_SEPARATOR in _realpath() Have you seen my second question/remark? Why is smarty trying to find the dirs inside the public-root? |
…e user may have defined it to something else #277
The fix is now in the master branch. The failure occurred as I did first normalized the separators to DS which in your case was not DIRECTORY_SEPARATOR. This caused that D:/ was not detected as root as it was not expected. |
Hi,
Risking a stupid question, but i will give it a try....
I am trying to set the dirs for templates, compile etc. with smarty(3.1.30), php 7 (7.0.10), on xampp on windows10.
I have some dirs like:
D:\development\someproject\cache\templates_c
D:\development\core\templates
When setting these dirs and testing the smarty-install it says:
I found Smarty->_realpath() using getcwd() to find the current-directy. That explains why it give the /public. ($parts['root'] is empty)
It does not recognize the absolute windows-path it seems.
Am i doing something wrong? Or is this an issue in _realpath()?
(minor question: it is adviced to setup the dirs above the public-root (httdocs). So why is smarty trying to find the relative paths inside the public-root? )
I searched a lot, before asking. But could not find a similar question or answer so far.
I hope someone can help or fix this.
Greetz, flexjoly
The text was updated successfully, but these errors were encountered: