On Tue, 23 Jul 2002, Lo�c wrote:
Hi again!
First I must tell you than I no long have access to any server from my work. So, Robin, I've modified your but didn't test it. It may then be buggy but I can't check it.
I'll ask around.
[About the "PMA_sqlParser_isEscaped()" recursive function] Marc sent you the valid reply ;)
Ok.
[About the "===" operator]
How does one then properly evaluate some expressions? $f = FALSE; $g = 0
You have to play with the "is_integer()" function.
Ok.
My code relies on this difference, as some of the PHP functions (strpos namely) return FALSE for not found, and integers [0-strlen).
Check users' comments about the "strpos" function in the online php documentation: we can't rely on the type of the returned value since different PHP versions return different type. The only way to do it is to add a known character before the string you're searching into, this way you know a zero, FALSE, empty... value returned means the haystack has not be found.
Hmm I missed that subtleness in your patch. I'll go and see about it again, as I use strpos in a number of other places as well.
Tell me what text editor you are using with what settings, so that I can work out settings for my vim to do this properly.
I'm using either UtlraEdit, either vi, either a windows port of vi... Have you see the vim settings suggested at the "PEAR coding standard" web page?
Yes, I have those.
I mean a proper full set of indent settings, so that vim can auto-indent PHP from the get go, just like it can do C++ and C.
That way I can code up a function in my personal format, then select everything, and apply a style that converts to PEAR coding standards automatically.
I have one so far that I found on the net, but it _requires_ me to end a switch block with: default:\nbreak;\n} which I can't do, as I need the default: statement for some of my code.