Feature proposal : php.ini option to disable access control and interfaces

php.internals

Eric Daspet

22 years ago
Hi, Is it possible or planned to have a php.ini option in order to disable interfaces and access control ? something like assert.active for assertions. What I mean is something like a option "access_control.active". If it is disabled then PHP do not check private/public/protected access, do not load interfaces definitions with __autoload and do not use them. Could this speed up some script which have proven to be stable and correctly designed ? it should avoid loading some files (interface definitions) and avoid some checks (access controls). Am I right to think it may help performance ? and is this feature possible ? (probably not for 5.0 as we are in RC, but somewhere in future) Sincerely,
-- Eric Daspet

Andi Gutmans

22 years ago
Hi Eric, I don't see very much value in such an option and I doubt it would help run-tme very much. In any case, the access control is very much part of the infrastructure and it can't just be skipped very easily. Andi At 11:32 AM 4/16/2004 +0200, Eric Daspet wrote: