#988: Cache path is detected incorrectly in some cases
--------------------------------+-------------------------------------------
 Reporter:  ser...@…            |       Owner:  david   
     Type:  defect              |      Status:  new     
 Priority:  normal              |   Milestone:  0.11.6  
Component:  _OTHER_             |     Version:  HEAD-1.0
 Severity:  normal              |    Keywords:          
Has_patch:  1                   |  
--------------------------------+-------------------------------------------
 Method AgaviExecutionFilter::getVariable() sometimes returns a boolean
 FALSE value. But in this case full cache path is constructed incorrectly,
 with on missing directory.

 When constructing path in the cache the following code is being used:

         foreach($groups as &$group) {
             $group = base64_encode($group);
         }

 but base64_encode(FALSE) === "", base64_encode(TRUE) === "1", so resulting
 path will contain something like "dir1//dir3" instead of "dir1/0/dir3".

-- 
Ticket URL: <http://trac.agavi.org/ticket/988>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5


_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to