#013370: Infinitive loop in ezcBaseFile::calculateRelativePath()

Description:

Here is my test script... something must be wrong with the while.


<?php
require 'autoload.php';
$dir = getcwd();
echo $dir;
ezcBaseFile::calculateRelativePath( 'C:\workspace\xxx_upgrade', $dir );
die("aaaaaa");
?>

the output the script never dies...


C:\workspace\xxx_upgrade>php extension\ezsvn\bin\buildxml.php -o
C:\workspace\xxx_upgrade

I am guessing a fix now




        while ( $pathPart == $basePart )
        {
+          if( $pathPart = ''  and  $basePart = '' )
+               return '.';
            $pathPart = array_shift( $path );
            $basePart = array_shift( $base );
        }


Environment:

Operating System:win xp 64 bit
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments

No attachments for this issue.


- Comments

Fixed revision 8621 for Base 1.5.1 (which we will release next Monday).

#257586 by Derick Rethans on July 24th, 2008 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Base
Affects 1.5 - Base 1.5
Fix Version -
Reporter Björn Dieding@xrow.de
Responsible Derick Rethans
Status 0 Closed
Resolution Fixed
Created July 18th, 2008
Updated July 24th, 2008
Resolved July 24th, 2008
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels