uTools-Manuals/docs/php/msg_set_queue.html
2019-04-28 19:00:34 +08:00

95 lines
3.6 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>Set information in the message queue data structure</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.msg-set-queue" class="refentry">
<div class="refnamediv">
<h1 class="refname">msg_set_queue</h1>
<p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">msg_set_queue</span> &mdash; <span class="dc-title">Set information in the message queue data structure</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.msg-set-queue-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>msg_set_queue</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$queue</code></span>
, <span class="methodparam"><span class="type">array</span> <code class="parameter">$data</code></span>
) : <span class="type">bool</span></div>
<p class="para rdfs-comment">
<span class="function"><strong>msg_set_queue()</strong></span> allows you to change the values of the
msg_perm.uid, msg_perm.gid, msg_perm.mode and msg_qbytes fields of the
underlying message queue data structure.
</p>
<p class="para">
Changing the data structure will require that PHP be running as the same
user that created the queue, owns the queue (as determined by the
existing msg_perm.xxx fields), or be running with root privileges.
root privileges are required to raise the msg_qbytes values above the
system defined limit.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.msg-set-queue-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">queue</code></dt>
<dd>
<p class="para">
Message queue resource handle
</p>
</dd>
<dt>
<code class="parameter">data</code></dt>
<dd>
<p class="para">
You specify the values you require by setting the value of the keys
that you require in the <code class="parameter">data</code> array.
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.msg-set-queue-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
成功时返回 <strong><code>TRUE</code></strong> 或者在失败时返回 <strong><code>FALSE</code></strong>
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.msg-set-queue-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="msg_remove_queue.html" class="function" rel="rdfs-seeAlso">msg_remove_queue()</a> - Destroy a message queue</span></li>
<li class="member"><span class="function"><a href="msg_receive.html" class="function" rel="rdfs-seeAlso">msg_receive()</a> - Receive a message from a message queue</span></li>
<li class="member"><span class="function"><a href="msg_stat_queue.html" class="function" rel="rdfs-seeAlso">msg_stat_queue()</a> - Returns information from the message queue data structure</span></li>
<li class="member"><span class="function"><a href="msg_get_queue.html" class="function" rel="rdfs-seeAlso">msg_get_queue()</a> - Create or attach to a message queue</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>