uTools-Manuals/docs/php/get_magic_quotes_runtime.html
2019-04-08 23:22:26 +08:00

94 lines
3.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>获取当前 magic_quotes_runtime 配置选项的激活状态</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.get-magic-quotes-runtime" class="refentry">
<div class="refnamediv">
<h1 class="refname">get_magic_quotes_runtime</h1>
<p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">get_magic_quotes_runtime</span> &mdash; <span class="dc-title">获取当前 magic_quotes_runtime 配置选项的激活状态</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.get-magic-quotes-runtime-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>get_magic_quotes_runtime</strong></span>
( <span class="methodparam">void</span>
) : <span class="type">bool</span></div>
<p class="simpara">
返回当前 <a href="info.configuration.html#ini.magic-quotes-runtime" class="link">magic_quotes_runtime</a> 配置选项的激活状态。
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.get-magic-quotes-runtime-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
magic_quotes_runtime 在关闭时返回 0否则返回 1。
自 PHP 5.4.0 起始终返回 <strong><code>FALSE</code></strong>
</p>
</div>
<div class="refsect1 changelog" id="refsect1-function.get-magic-quotes-runtime-changelog">
<h3 class="title">更新日志</h3>
<p class="para">
<table class="doctable informaltable">
<thead>
<tr>
<th>版本</th>
<th>说明</th>
</tr>
</thead>
<tbody class="tbody">
<tr>
<td>5.4.0</td>
<td>
总是返回 <strong><code>FALSE</code></strong>因为魔术引号magic quotes功能已经从 PHP 中移除。
</td>
</tr>
</tbody>
</table>
</p>
</div>
<div class="refsect1 examples" id="refsect1-function.get-magic-quotes-runtime-examples">
<h3 class="title">范例</h3>
<p class="para">
<div class="example" id="example-502">
<p><strong>Example #1 <span class="function"><strong>get_magic_quotes_runtime()</strong></span> 例子</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//&nbsp;检测&nbsp;magic_quotes_runtime&nbsp;是否已经激活<br /></span><span style="color: #007700">if(</span><span style="color: #0000BB">get_magic_quotes_runtime</span><span style="color: #007700">())<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;关闭功能<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">set_magic_quotes_runtime</span><span style="color: #007700">(</span><span style="color: #0000BB">false</span><span style="color: #007700">);<br />}<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
</div>
</div>
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.get-magic-quotes-runtime-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="get_magic_quotes_gpc.html" class="function" rel="rdfs-seeAlso">get_magic_quotes_gpc()</a> - 获取当前 magic_quotes_gpc 的配置选项设置</span></li>
<li class="member"><span class="function"><a href="set_magic_quotes_runtime.html" class="function" rel="rdfs-seeAlso">set_magic_quotes_runtime()</a> - 设置当前 magic_quotes_runtime 配置选项的激活状态</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>