[DOC-CVS] [doc-en] master: Fix links to magic constants page (#4668)

[email protected] (Juliette via GitHub)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Juliette (jrfnl)
Committer: GitHub (web-flow)
Pusher: DanielEScherzer
Date: 2025-05-15T21:59:00-07:00

Commit: https://github.com/php/doc-en/commit/a124543dd3f6b1e5567b07420d23899e582514dc
Raw diff: https://github.com/php/doc-en/commit/a124543dd3f6b1e5567b07420d23899e582514dc.diff

Fix links to magic constants page (#4668)

Not sure what happened here, but found quite a few incorrect links for the magic constants page.

Fixed now.

Changed paths:
  M  appendices/tokens.xml
  M  language/control-structures/include.xml
  M  language/predefined/variables/server.xml
  M  reference/errorfunc/functions/debug-backtrace.xml
  M  reference/misc/functions/define.xml


Diff:

diff --git a/appendices/tokens.xml b/appendices/tokens.xml
index f96907274af6..4294cbc1e38b 100644
--- a/appendices/tokens.xml
+++ b/appendices/tokens.xml
@@ -145,7 +145,7 @@ defined('T_FN') || define('T_FN', 10001);
      <entry><constant>T_CLASS_C</constant></entry>
      <entry>__CLASS__</entry>
      <entry>
-      <link linkend="language.constants.predefined">magic constants</link>
+      <link linkend="language.constants.magic">magic constants</link>
      </entry>
     </row>
     <row xml:id="constant.t-clone">
@@ -230,7 +230,7 @@ defined('T_FN') || define('T_FN', 10001);
     <row xml:id="constant.t-dir">
      <entry><constant>T_DIR</constant></entry>
      <entry>__DIR__</entry>
-     <entry><link linkend="language.constants.predefined">magic constants</link></entry>
+     <entry><link linkend="language.constants.magic">magic constants</link></entry>
     </row>
     <row xml:id="constant.t-div-equal">
      <entry><constant>T_DIV_EQUAL</constant></entry>
@@ -377,7 +377,7 @@ defined('T_FN') || define('T_FN', 10001);
     <row xml:id="constant.t-file">
      <entry><constant>T_FILE</constant></entry>
      <entry>__FILE__</entry>
-     <entry><link linkend="language.constants.predefined">magic constants</link></entry>
+     <entry><link linkend="language.constants.magic">magic constants</link></entry>
     </row>
     <row xml:id="constant.t-final">
      <entry><constant>T_FINAL</constant></entry>
@@ -416,7 +416,7 @@ defined('T_FN') || define('T_FN', 10001);
      <entry><constant>T_FUNC_C</constant></entry>
      <entry>__FUNCTION__</entry>
      <entry>
-      <link linkend="language.constants.predefined">magic constants</link>
+      <link linkend="language.constants.magic">magic constants</link>
      </entry>
     </row>
     <row xml:id="constant.t-global">
@@ -526,7 +526,7 @@ defined('T_FN') || define('T_FN', 10001);
     <row xml:id="constant.t-line">
      <entry><constant>T_LINE</constant></entry>
      <entry>__LINE__</entry>
-     <entry><link linkend="language.constants.predefined">magic constants</link></entry>
+     <entry><link linkend="language.constants.magic">magic constants</link></entry>
     </row>
     <row xml:id="constant.t-list">
      <entry><constant>T_LIST</constant></entry>
@@ -564,7 +564,7 @@ defined('T_FN') || define('T_FN', 10001);
      <entry><constant>T_METHOD_C</constant></entry>
      <entry>__METHOD__</entry>
      <entry>
-      <link linkend="language.constants.predefined">magic constants</link>
+      <link linkend="language.constants.magic">magic constants</link>
      </entry>
     </row>
     <row xml:id="constant.t-minus-equal">
@@ -720,7 +720,7 @@ defined('T_FN') || define('T_FN', 10001);
      <entry><constant>T_PROPERTY_C</constant></entry>
      <entry>__PROPERTY__</entry>
      <entry>
-      <link linkend="language.constants.predefined">magic constants</link>
+      <link linkend="language.constants.magic">magic constants</link>
      </entry>
     </row>
     <row xml:id="constant.t-protected">
diff --git a/language/control-structures/include.xml b/language/control-structures/include.xml
index 97805b7a7213..33a91ebc79dc 100644
--- a/language/control-structures/include.xml
+++ b/language/control-structures/include.xml
@@ -84,7 +84,7 @@ echo "A $color $fruit"; // A green apple
   though it had been defined inside that function.  So, it will follow
   the variable scope of that function.
   An exception to this rule are <link
-  linkend="language.constants.predefined">magic constants</link> which are
+  linkend="language.constants.magic">magic constants</link> which are
   evaluated by the parser before the include occurs.
  </simpara>
  <para>
diff --git a/language/predefined/variables/server.xml b/language/predefined/variables/server.xml
index 46a7e0399b55..672619a5c837 100644
--- a/language/predefined/variables/server.xml
+++ b/language/predefined/variables/server.xml
@@ -49,7 +49,7 @@
        <varname>$_SERVER['PHP_SELF']</varname> in a script at the
        address <filename>http://example.com/foo/bar.php</filename>
        would be <filename>/foo/bar.php</filename>.
-       The <link linkend="language.constants.predefined">__FILE__</link>
+       The <link linkend="language.constants.magic">__FILE__</link>
        constant contains the full path and filename of the current (i.e.
        included) file.
       </simpara>
@@ -346,7 +346,7 @@
       <simpara>
        Contains the current script's path. This is useful for pages
        which need to point to themselves.
-       The <link linkend="language.constants.predefined">__FILE__</link>
+       The <link linkend="language.constants.magic">__FILE__</link>
        constant contains the full path and filename of the current (i.e.
        included) file.
       </simpara>
diff --git a/reference/errorfunc/functions/debug-backtrace.xml b/reference/errorfunc/functions/debug-backtrace.xml
index 41f81cdfc2ab..fd1d8d49cfa8 100644
--- a/reference/errorfunc/functions/debug-backtrace.xml
+++ b/reference/errorfunc/functions/debug-backtrace.xml
@@ -134,7 +134,7 @@
        <entry><type>string</type></entry>
        <entry>
         The current function name.  See also
-        <link linkend="language.constants.predefined">__FUNCTION__</link>.
+        <link linkend="language.constants.magic">__FUNCTION__</link>.
        </entry>
       </row>
       <row>
@@ -142,7 +142,7 @@
        <entry><type>int</type></entry>
        <entry>
         The current line number.  See also
-        <link linkend="language.constants.predefined">__LINE__</link>.
+        <link linkend="language.constants.magic">__LINE__</link>.
        </entry>
       </row>
       <row>
@@ -150,7 +150,7 @@
        <entry><type>string</type></entry>
        <entry>
         The current file name.  See also
-        <link linkend="language.constants.predefined">__FILE__</link>.
+        <link linkend="language.constants.magic">__FILE__</link>.
        </entry>
       </row>
       <row>
@@ -158,7 +158,7 @@
        <entry><type>string</type></entry>
        <entry>
         The current <link linkend="language.oop5">class</link> name.  See also
-        <link linkend="language.constants.predefined">__CLASS__</link>
+        <link linkend="language.constants.magic">__CLASS__</link>
        </entry>
       </row>
       <row>
diff --git a/reference/misc/functions/define.xml b/reference/misc/functions/define.xml
index 28c59598c83f..6fd5cd0a422a 100644
--- a/reference/misc/functions/define.xml
+++ b/reference/misc/functions/define.xml
@@ -157,7 +157,7 @@ echo ANIMALS[1]; // outputs "cat"
     <para>
      This example illustrates the <emphasis>possibility</emphasis> to define a
      constant with the same name as a
-     <link linkend="language.constants.predefined">magic constant</link>.
+     <link linkend="language.constants.magic">magic constant</link>.
      Since the resulting behavior is obviously confusing, it is not recommended
      to do this in practise, though.
     </para>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.