reference/info/functions/main.xml
202db6be137f52879eac8adfe22f14edda302785
...
...
@@ -1,92 +0,0 @@
1
-
<?xml version="1.0" encoding="utf-8"?>
2
-
<!-- $Revision$ -->
3
-
<refentry xml:id="function.main" xmlns="http://docbook.org/ns/docbook" role="noversion" xmlns:xlink="http://www.w3.org/1999/xlink">
4
-
<refnamediv>
5
-
<refname>main</refname>
6
-
<refpurpose>Dummy for <function>main</function></refpurpose>
7
-
</refnamediv>
8
-

9
-
<refsect1 role="description">
10
-
&reftitle.description;
11
-
<para>
12
-
There is no function named <function>main</function> except
13
-
in the PHP source. In PHP 4.3.0, a new type of error handling
14
-
in the PHP source (php_error_docref) was introduced. One feature
15
-
is to provide links to a manual page in PHP error messages when
16
-
the PHP directives <link linkend="ini.html-errors">html_errors</link>
17
-
(on by default) and <link linkend="ini.docref-root">docref_root</link>
18
-
(on by default until PHP 4.3.2) are set.
19
-
</para>
20
-
<para>
21
-
Sometimes error messages refer to a manual page for the function
22
-
<function>main</function> which is why this page exists. If you
23
-
discover such a reference, please
24
-
<link xlink:href="&url.php.bugs;">file a bug report</link>, indicating
25
-
the PHP function caused the error that linked to <function>main</function>
26
-
and it will be fixed and properly documented.
27
-
</para>
28
-
<para>
29
-
<table>
30
-
<title>Known errors that point to <function>main</function></title>
31
-
<tgroup cols="2">
32
-
<thead>
33
-
<row>
34
-
<entry>Function name</entry>
35
-
<entry>No longer points here as of</entry>
36
-
</row>
37
-
</thead>
38
-
<tbody>
39
-
<row>
40
-
<entry><function>include</function></entry>
41
-
<entry>5.1.0</entry>
42
-
</row>
43
-
<row>
44
-
<entry><function>include_once</function></entry>
45
-
<entry>5.1.0</entry>
46
-
</row>
47
-
<row>
48
-
<entry><function>require</function></entry>
49
-
<entry>5.1.0</entry>
50
-
</row>
51
-
<row>
52
-
<entry><function>require_once</function></entry>
53
-
<entry>5.1.0</entry>
54
-
</row>
55
-
</tbody>
56
-
</tgroup>
57
-
</table>
58
-
</para>
59
-
</refsect1>
60
-

61
-
<refsect1 role="seealso">
62
-
&reftitle.seealso;
63
-
<para>
64
-
<simplelist>
65
-
<member><link linkend="ini.html-errors">html_errors</link></member>
66
-
<member><link linkend="ini.display-errors">display_errors</link></member>
67
-
</simplelist>
68
-
</para>
69
-
</refsect1>
70
-

71
-
</refentry>
72
-

73
-
<!-- Keep this comment at the end of the file
74
-
Local variables:
75
-
mode: sgml
76
-
sgml-omittag:t
77
-
sgml-shorttag:t
78
-
sgml-minimize-attributes:nil
79
-
sgml-always-quote-attributes:t
80
-
sgml-indent-step:1
81
-
sgml-indent-data:t
82
-
indent-tabs-mode:nil
83
-
sgml-parent-document:nil
84
-
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
85
-
sgml-exposed-tags:nil
86
-
sgml-local-catalogs:nil
87
-
sgml-local-ecat-files:nil
88
-
End:
89
-
vim600: syn=xml fen fdm=syntax fdl=2 si
90
-
vim: et tw=78 syn=sgml
91
-
vi: ts=1 sw=1
92
-
-->
93
0