Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.0

Bug #6902 Problem w/ cache filename on Windows
Submitted: 2006-02-23 10:40 UTC
From: slaurencot at sqli dot com Assigned: avb
Status: Closed Package: HTML_Template_Sigma (version 1.1.4)
PHP Version: 4.3.11 OS: WinXP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 17 - 5 = ?

 
 [2006-02-23 10:40 UTC] slaurencot at sqli dot com (stephane)
Description: ------------ The cache filename returned by _cachedName() isn't correct on Windows if using absolute path. Ex. if I have 2 templates, "c:/template/tmp1.tpl" and "c:/template/tmp2.tpl", _cachedName() will return "c" as cachedName 2 times. Test script: --------------- A solution is to remove ":" in $filename : function _cachedName($filename) { if ('/' == $filename{0} && '/' == substr($this->_cacheRoot, -1)) { $filename = substr($filename, 1); } $filename = str_replace('/', '__', $filename); // The str_replace below correct the problem $filename = str_replace(':', '', $filename); return $this->_cacheRoot. $filename. '.it'; } // _cachedName

Comments

 [2006-02-26 18:26 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2006-05-30 21:37 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!