I'm encountering problems with debugging URI-filenames generated by Smarty.
Smarty gives me Files in the form:
/var/www/htdocs/template_c/%%F3^F31^F310FF42%%gruppe.html.php
However in debug mode (fully functional with nice URIs ;) this URI seems to get somehow translated to
file://127.0.0.1/var/www/htdocs/template_c/%ó^F3^F310FF42%%gruppe.html
The %F3 gets translated to ó
Is this issue on side of komodo or xdebug?
Any help would be appreciated
Bugi
I haven't used Smarty (I only wrote a UDL spec for its colorizer).
The filenames look valid. Whoever is converting them into URIs should
be converting each '%' character into '%25', but I can't tell you offhand
if that's being done by XDebug, Komodo, or Smarty itself.
Is there a way to work around this problem by not using '%' characters
in the generaed filenames?
- Eric
It looks like Komodo is doing something strange with the URIs, as Xdebug is correctly escaping the URI and passing it to Komodo as:
filename="file:///srv/www/smarty/templates_c/%25%2545%5E45E%5E45E480CD%25%25index.tpl.php"
lineno="8" />
<stack where="include" level="0" type="file" filename="file:///srv/www/smarty/templates_c/%25%2545%5E45E%5E45E480CD%25%25index.tpl.php" lineno="8" />I've logged a Komodo bug on this problem here:
http://bugs.activestate.com/show_bug.cgi?id=85096
Your workaround fix is a good idea to get this working correctly for Smarty files.
Cheers,
Todd
Thanks for your interest,
I'm circumventing the problem now with a slight change in
Smarty::_get_auto_filename():by appending an 'X' to the %-sign preventing the de-escaping:
It should make it to a nightly soon.
Thanks for bringing this to our attention.
- Eric