Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHPEd Strange debug

Status
Not open for further replies.

maxbld

Programmer
Nov 30, 2001
8
IT
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top