Guilherme Blanco wrote:
Why? Because $db should be a constant and could not be modified.
Allowing this, the 3rd party component could redefine some important
properties inside of your object and may cause unbelievable issues in
your appplication.

This makes it sound like you let other people write code that you then include in your applications on your site. Is that right? Otherwise, don't you (or your team) write the code that goes on your site?

On top of that, this 3rd party will be making the function. So, they control the definition, not you. You can call time pass as const. So, this is not a solution to keep 3rd parties from breaking your stuff.

It makes no sense to me, but you can never tell what OOP person may jump in here and think it is the best thing since left handed backwards inheritance or something. =)

--

Brian Moon
-------------
http://dealnews.com/
It's good to be cheap =)

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to