mirror of
https://github.com/php/doc-en.git
synced 2026-03-23 23:32:18 +01:00
Remove ZEND_ constants that can be overridden
This commit is contained in:
committed by
Gina Peter Banyard
parent
106b64de78
commit
b52d7fcdf4
@@ -1135,7 +1135,7 @@ A\B::foo(); // calls method "foo" of class "B" from namespace "A\A"
|
||||
<listitem>
|
||||
<simpara>
|
||||
<link linkend="language.namespaces.faq.builtinconst">Cannot override special
|
||||
constants NULL, TRUE, FALSE, ZEND_THREAD_SAFE or ZEND_DEBUG_BUILD</link>
|
||||
constants NULL, TRUE or FALSE</link>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
@@ -1508,7 +1508,7 @@ $a = \Bar\FOO; // fatal error, undefined namespace constant Bar\FOO
|
||||
</para>
|
||||
</sect2>
|
||||
<sect2 xml:id="language.namespaces.faq.builtinconst">
|
||||
<title>Cannot override special constants NULL, TRUE, FALSE, ZEND_THREAD_SAFE or ZEND_DEBUG_BUILD</title>
|
||||
<title>Cannot override special constants NULL, TRUE or FALSE</title>
|
||||
<para>
|
||||
Any attempt to define a namespaced constant that is a special, built-in constant
|
||||
results in a fatal error
|
||||
|
||||
Reference in New Issue
Block a user