mirror of
https://github.com/macintoshplus/doc-en.git
synced 2026-03-24 00:42:18 +01:00
Update disable_classes and disabled_functions INI settings (#2681)
This commit is contained in:
committed by
GitHub
parent
6f103ee118
commit
0ba1c35312
@@ -195,42 +195,51 @@
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
||||
<varlistentry xml:id="ini.disable-functions">
|
||||
<term>
|
||||
<parameter>disable_functions</parameter>
|
||||
<type>string</type>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
This directive allows you to disable certain functions. It takes
|
||||
on a comma-delimited list of function names.
|
||||
</para>
|
||||
<para>
|
||||
<simpara>
|
||||
This directive allows disables certain functions.
|
||||
It takes on a comma-delimited list of function names.
|
||||
As of PHP 8.0.0, disabling a function removes it definition
|
||||
allowing userland to redefine it.
|
||||
Prior to PHP 8.0.0, disabling a function just prevent invoking the function.
|
||||
</simpara>
|
||||
<simpara>
|
||||
Only <link linkend="functions.internal">internal functions</link> can
|
||||
be disabled using this directive. <link linkend="functions.user-defined">User-defined functions</link>
|
||||
be disabled using this directive.
|
||||
<link linkend="functions.user-defined">User-defined functions</link>
|
||||
are unaffected.
|
||||
</para>
|
||||
<para>
|
||||
This directive must be set in &php.ini; For example, you
|
||||
cannot set this in &httpd.conf;.
|
||||
</para>
|
||||
</simpara>
|
||||
<simpara>
|
||||
This directive must be set in &php.ini;.
|
||||
It cannot be set in &httpd.conf;.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
||||
<varlistentry xml:id="ini.disable-classes">
|
||||
<term>
|
||||
<parameter>disable_classes</parameter>
|
||||
<type>string</type>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
This directive allows disables certain classes.
|
||||
It takes on a comma-delimited list of class names.
|
||||
Disabling a class just prevent instantiating the class.
|
||||
</para>
|
||||
<para>
|
||||
Only internal classes can be disabled using this directive.
|
||||
User-defined classes are unaffected.
|
||||
</para>
|
||||
<simpara>
|
||||
This directive allows you to disable certain classes. It takes
|
||||
on a comma-delimited list of class names.
|
||||
</simpara>
|
||||
<simpara>
|
||||
This directive must be set in &php.ini; For example, you
|
||||
cannot set this in &httpd.conf;.
|
||||
This directive must be set in &php.ini;.
|
||||
It cannot be set in &httpd.conf;.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
Reference in New Issue
Block a user