Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#119 Menu class goes into infinite loop on Windows

7.4pre1
open
nobody
None
5
2003-04-15
2003-04-15
Venkat
No

Menu.inc in release "phplib-7.4-pre2" , function
"normalize_pos", line 216 has something like this

if ($m == "/") {

$m = "";

This causes a infinite loop on windows, on this

while(strlen($m)) { ...

}

Replaing the "if" with the code below appears to solve the
problem.

if (($m == "/") || ($m == "\\")) {

$m = "";

Discussion