mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
80 lines
3.1 KiB
HTML
80 lines
3.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||
<title>虚拟的main</title>
|
||
</head>
|
||
<body class="docs"><div id="layout">
|
||
<div id="layout-content"><div id="function.main" class="refentry">
|
||
<div class="refnamediv">
|
||
<h1 class="refname">main</h1>
|
||
<p class="refpurpose"><span class="refname">main</span> — <span class="dc-title">虚拟的<span class="function"><strong>main()</strong></span></span></p>
|
||
|
||
</div>
|
||
|
||
<div class="refsect1 description" id="refsect1-function.main-description">
|
||
<h3 class="title">说明</h3>
|
||
<p class="para">
|
||
除了在PHP源码里,并没有一个名称为 <span class="function"><strong>main()</strong></span> 的函数。
|
||
在 PHP 4.3.0 的源码里,引入了新的错误处理类型(php_error_docref)。
|
||
其中一个功能是在 PHP 指令 <a href="errorfunc.configuration.html#ini.html-errors" class="link">html_errors</a>(默认为 on) 和 <a href="errorfunc.configuration.html#ini.docref-root" class="link">docref_root</a>(默认为on直至 PHP 4.3.2) 被设置时,在错误信息里提供对应的手册链接。
|
||
</p>
|
||
<p class="para">
|
||
本页存在的原因是因为有时函数 <span class="function"><strong>main()</strong></span> 错误信息里的手册链接会指到本页。
|
||
如果你发现了这样的引用,请 <a href="http://bugs.php.net/" class="link external">» 提交错误报告</a>,
|
||
说明 PHP 函数发生了错误,并链接到了 <span class="function"><strong>main()</strong></span>,
|
||
错误会被妥善处理并可能会记录在文档里。
|
||
</p>
|
||
<p class="para">
|
||
<table class="doctable table">
|
||
<caption><strong>已知这些错误会指向 <span class="function"><strong>main()</strong></span></strong></caption>
|
||
|
||
<thead>
|
||
<tr>
|
||
<th>函数名</th>
|
||
<th>直到该版本,不会再指到这里</th>
|
||
</tr>
|
||
|
||
</thead>
|
||
|
||
<tbody class="tbody">
|
||
<tr>
|
||
<td><span class="function"><a href="include.html" class="function">include</a></span></td>
|
||
<td>5.1.0</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td><span class="function"><a href="include_once.html" class="function">include_once</a></span></td>
|
||
<td>5.1.0</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td><span class="function"><a href="require.html" class="function">require</a></span></td>
|
||
<td>5.1.0</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td><span class="function"><a href="require_once.html" class="function">require_once</a></span></td>
|
||
<td>5.1.0</td>
|
||
</tr>
|
||
|
||
</tbody>
|
||
|
||
</table>
|
||
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 seealso" id="refsect1-function.main-seealso">
|
||
<h3 class="title">参见</h3>
|
||
<p class="para">
|
||
<ul class="simplelist">
|
||
<li class="member"><a href="errorfunc.configuration.html#ini.html-errors" class="link">html_errors</a></li>
|
||
<li class="member"><a href="errorfunc.configuration.html#ini.display-errors" class="link">display_errors</a></li>
|
||
</ul>
|
||
</p>
|
||
</div>
|
||
|
||
|
||
</div></div></div></body></html> |