[PHP] Type safety

2003-07-26 Thread Nikhil G. Daddikar
We all know PHP is great and flexible but, I have this problem... I had a function that took an object as parameter, someone went ahead and changed that to accept object's id (integer), because there is no "compilation", some of the code broke. Is there any way to alleviate these kinds of probl

[PHP] Parsing PHP

2003-07-26 Thread Nikhil G. Daddikar
I am using PHP to develop and web app. The app also has a scripting language for the *end user*. I was thinking if I could expose a very simple subset of PHP to them (foreach, if-then-else, variable assignments and comments) and then simply "eval" it. But I don't want them to use calls like sys