Hi to everybody,
While debugging an app with NuSphere PHPEd v3.01 i did notice a very strange buggy behavior: I passed a string containing slashes in a POST variable, an to simulate it in a debug session i entered the following lines in the immediate window:
$parent = "AS UI\\DC\\SGR\\SCR\\SS001"
: string = "AS UI\\DC\\SGR\\SCR\\SS001"
stripslashes($parent)
: string = "AS UIDCSGRSCRSS001"
Funny uh? And the same happens with stripcslashes($parent). Outside the debugger stripslashes($parent) would have returned
"AS UI\DC\SGR\SCR\SS001".
And if i put in the immediate $parent = "AS UI\DC\SGR\SCR\SS001", it echoes:
$parent = "AS UI\DC\SGR\SCR\SS001"
: string = "AS UI\\DC\\SGR\\SCR\\SS001"
So, in fact, i'm unable to put the correct value ("AS UI\DC\SGR\SCR\SS001" in $parent. It seems to be a PHPEd bug. Did everyone of you ever notice it? And if so did you find a workaround?
Thank you a lot.
Max.
While debugging an app with NuSphere PHPEd v3.01 i did notice a very strange buggy behavior: I passed a string containing slashes in a POST variable, an to simulate it in a debug session i entered the following lines in the immediate window:
$parent = "AS UI\\DC\\SGR\\SCR\\SS001"
: string = "AS UI\\DC\\SGR\\SCR\\SS001"
stripslashes($parent)
: string = "AS UIDCSGRSCRSS001"
Funny uh? And the same happens with stripcslashes($parent). Outside the debugger stripslashes($parent) would have returned
"AS UI\DC\SGR\SCR\SS001".
And if i put in the immediate $parent = "AS UI\DC\SGR\SCR\SS001", it echoes:
$parent = "AS UI\DC\SGR\SCR\SS001"
: string = "AS UI\\DC\\SGR\\SCR\\SS001"
So, in fact, i'm unable to put the correct value ("AS UI\DC\SGR\SCR\SS001" in $parent. It seems to be a PHPEd bug. Did everyone of you ever notice it? And if so did you find a workaround?
Thank you a lot.
Max.