Hi folks,

I stumbled across something rather odd a few days ago: I was editing a PHP file which had a variable $ROOT in it. This was a path to the server root, and we'd been told these would all have to be changed to constants, as the variable form had allowed someone to hack the site. So fine, we're changing all the $ROOT variables to ROOT constants.

Now, just as a matter of namespace paranoia, I'm not sure I would choose ROOT as a variable or a constant name, but I didn't write this code. Anyway, BBEdit apparently agrees with me, because when I remove the dollar sign, it colors ROOT blue. In other words, BBEdit thinks that ROOT is a PHP keyword.

I know PHP pretty well, and I'd never stumbled across this keyword. But, PHP being what it is, I know there are bits and pieces I'll never see -- it's a sprawling language. So I searched the manual. No ROOT.

I'm stumped. Anyone know why BBEdit colors the word?

Cheers,
Fletch


--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to