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

- Thread: https://externals.io/message/9251
- Original archive: https://news-web.php.net/php.internals/9251
- Started by Eric Daspet on 2004-04-16T09:32:29+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #9251 — Eric Daspet — 2004-04-16T09:32:29+00:00

URL: https://externals.io/message/9251#9251

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

---

## #9252 — Andi Gutmans — 2004-04-16T09:55:16+00:00

URL: https://externals.io/message/9251#9252 · In reply to: #9251

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:
>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
