Menu

#9 Code to fix in ClassPath.php

open
nobody
None
5
2006-05-12
2006-05-12
ChDelannoy
No

in the file :
phpmvc-base\WEB-
INF\classes\phpmvc\utils\ClassPath.php,
the function concatPaths() SHOULD use the delimiter
as the function getClassPath() does it:

old code :
$delim = NULL;
$delim = ClassPath::getPathDelimiter($osType);

good code (as in getClassPath()):
$delim = NULL;
if($osType == '') {
$delim = PATH_SEPARATOR;
} else {
$delim = ClassPath::getPathDelimiter($osType);
}

this sould avoid path as
global1;global2;global3;global4:local1;local2;local3;l
ocal4
(only ONE semi colomn, difficult to see it)

of course, this code ( $delim=NULL;if
($osType=='')...) should be encapsulated in
getPathDelimiter()...

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.