Skip to content

Commit a124543

Browse files
authored
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.
1 parent ecc5391 commit a124543

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

appendices/tokens.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ defined('T_FN') || define('T_FN', 10001);
145145
<entry><constant>T_CLASS_C</constant></entry>
146146
<entry>__CLASS__</entry>
147147
<entry>
148-
<link linkend="language.constants.predefined">magic constants</link>
148+
<link linkend="language.constants.magic">magic constants</link>
149149
</entry>
150150
</row>
151151
<row xml:id="constant.t-clone">
@@ -230,7 +230,7 @@ defined('T_FN') || define('T_FN', 10001);
230230
<row xml:id="constant.t-dir">
231231
<entry><constant>T_DIR</constant></entry>
232232
<entry>__DIR__</entry>
233-
<entry><link linkend="language.constants.predefined">magic constants</link></entry>
233+
<entry><link linkend="language.constants.magic">magic constants</link></entry>
234234
</row>
235235
<row xml:id="constant.t-div-equal">
236236
<entry><constant>T_DIV_EQUAL</constant></entry>
@@ -377,7 +377,7 @@ defined('T_FN') || define('T_FN', 10001);
377377
<row xml:id="constant.t-file">
378378
<entry><constant>T_FILE</constant></entry>
379379
<entry>__FILE__</entry>
380-
<entry><link linkend="language.constants.predefined">magic constants</link></entry>
380+
<entry><link linkend="language.constants.magic">magic constants</link></entry>
381381
</row>
382382
<row xml:id="constant.t-final">
383383
<entry><constant>T_FINAL</constant></entry>
@@ -416,7 +416,7 @@ defined('T_FN') || define('T_FN', 10001);
416416
<entry><constant>T_FUNC_C</constant></entry>
417417
<entry>__FUNCTION__</entry>
418418
<entry>
419-
<link linkend="language.constants.predefined">magic constants</link>
419+
<link linkend="language.constants.magic">magic constants</link>
420420
</entry>
421421
</row>
422422
<row xml:id="constant.t-global">
@@ -526,7 +526,7 @@ defined('T_FN') || define('T_FN', 10001);
526526
<row xml:id="constant.t-line">
527527
<entry><constant>T_LINE</constant></entry>
528528
<entry>__LINE__</entry>
529-
<entry><link linkend="language.constants.predefined">magic constants</link></entry>
529+
<entry><link linkend="language.constants.magic">magic constants</link></entry>
530530
</row>
531531
<row xml:id="constant.t-list">
532532
<entry><constant>T_LIST</constant></entry>
@@ -564,7 +564,7 @@ defined('T_FN') || define('T_FN', 10001);
564564
<entry><constant>T_METHOD_C</constant></entry>
565565
<entry>__METHOD__</entry>
566566
<entry>
567-
<link linkend="language.constants.predefined">magic constants</link>
567+
<link linkend="language.constants.magic">magic constants</link>
568568
</entry>
569569
</row>
570570
<row xml:id="constant.t-minus-equal">
@@ -720,7 +720,7 @@ defined('T_FN') || define('T_FN', 10001);
720720
<entry><constant>T_PROPERTY_C</constant></entry>
721721
<entry>__PROPERTY__</entry>
722722
<entry>
723-
<link linkend="language.constants.predefined">magic constants</link>
723+
<link linkend="language.constants.magic">magic constants</link>
724724
</entry>
725725
</row>
726726
<row xml:id="constant.t-protected">

language/control-structures/include.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ echo "A $color $fruit"; // A green apple
8484
though it had been defined inside that function. So, it will follow
8585
the variable scope of that function.
8686
An exception to this rule are <link
87-
linkend="language.constants.predefined">magic constants</link> which are
87+
linkend="language.constants.magic">magic constants</link> which are
8888
evaluated by the parser before the include occurs.
8989
</simpara>
9090
<para>

language/predefined/variables/server.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<varname>$_SERVER['PHP_SELF']</varname> in a script at the
5050
address <filename>http://example.com/foo/bar.php</filename>
5151
would be <filename>/foo/bar.php</filename>.
52-
The <link linkend="language.constants.predefined">__FILE__</link>
52+
The <link linkend="language.constants.magic">__FILE__</link>
5353
constant contains the full path and filename of the current (i.e.
5454
included) file.
5555
</simpara>
@@ -346,7 +346,7 @@
346346
<simpara>
347347
Contains the current script's path. This is useful for pages
348348
which need to point to themselves.
349-
The <link linkend="language.constants.predefined">__FILE__</link>
349+
The <link linkend="language.constants.magic">__FILE__</link>
350350
constant contains the full path and filename of the current (i.e.
351351
included) file.
352352
</simpara>

reference/errorfunc/functions/debug-backtrace.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,31 +134,31 @@
134134
<entry><type>string</type></entry>
135135
<entry>
136136
The current function name. See also
137-
<link linkend="language.constants.predefined">__FUNCTION__</link>.
137+
<link linkend="language.constants.magic">__FUNCTION__</link>.
138138
</entry>
139139
</row>
140140
<row>
141141
<entry>line</entry>
142142
<entry><type>int</type></entry>
143143
<entry>
144144
The current line number. See also
145-
<link linkend="language.constants.predefined">__LINE__</link>.
145+
<link linkend="language.constants.magic">__LINE__</link>.
146146
</entry>
147147
</row>
148148
<row>
149149
<entry>file</entry>
150150
<entry><type>string</type></entry>
151151
<entry>
152152
The current file name. See also
153-
<link linkend="language.constants.predefined">__FILE__</link>.
153+
<link linkend="language.constants.magic">__FILE__</link>.
154154
</entry>
155155
</row>
156156
<row>
157157
<entry>class</entry>
158158
<entry><type>string</type></entry>
159159
<entry>
160160
The current <link linkend="language.oop5">class</link> name. See also
161-
<link linkend="language.constants.predefined">__CLASS__</link>
161+
<link linkend="language.constants.magic">__CLASS__</link>
162162
</entry>
163163
</row>
164164
<row>

reference/misc/functions/define.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ echo ANIMALS[1]; // outputs "cat"
157157
<para>
158158
This example illustrates the <emphasis>possibility</emphasis> to define a
159159
constant with the same name as a
160-
<link linkend="language.constants.predefined">magic constant</link>.
160+
<link linkend="language.constants.magic">magic constant</link>.
161161
Since the resulting behavior is obviously confusing, it is not recommended
162162
to do this in practise, though.
163163
</para>

0 commit comments

Comments
 (0)