<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.sem.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.msg-stat-queue.php',
    1 => 'msg_stat_queue',
    2 => 'Returns information from the message queue data structure',
  ),
  'up' => 
  array (
    0 => 'ref.sem.php',
    1 => 'Semaphore Функції',
  ),
  'prev' => 
  array (
    0 => 'function.msg-set-queue.php',
    1 => 'msg_set_queue',
  ),
  'next' => 
  array (
    0 => 'function.sem-acquire.php',
    1 => 'sem_acquire',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/sem/functions/msg-stat-queue.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.msg-stat-queue" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">msg_stat_queue</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">msg_stat_queue</span> &mdash; <span class="dc-title">Returns information from the message queue data structure</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.msg-stat-queue-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>msg_stat_queue</strong></span>(<span class="methodparam"><span class="type"><a href="class.sysvmessagequeue.php" class="type SysvMessageQueue">SysvMessageQueue</a></span> <code class="parameter">$queue</code></span>): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>msg_stat_queue()</strong></span> returns the message queue meta data
   for the message queue specified by the <code class="parameter">queue</code>.
   This is useful, for example, to determine which process sent the message
   that was just received.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.msg-stat-queue-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">queue</code></dt>
     <dd>
      <p class="para">
       The message queue.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.msg-stat-queue-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   On success, the return value is an array whose keys and values have the following
   meanings:
   <table class="doctable table">
    <caption><strong>Array structure for msg_stat_queue</strong></caption>
    
     <tbody class="tbody">
      <tr>
       <td><code class="literal">msg_perm.uid</code></td>
       <td>
        The uid of the owner of the queue.
       </td>
      </tr>

      <tr>
       <td><code class="literal">msg_perm.gid</code></td>
       <td>
        The gid of the owner of the queue.
       </td>
      </tr>

      <tr>
       <td><code class="literal">msg_perm.mode</code></td>
       <td>
        The file access mode of the queue.
       </td>
      </tr>

      <tr>
       <td><code class="literal">msg_stime</code></td>
       <td>
        The time that the last message was sent to the queue.
       </td>
      </tr>

      <tr>
       <td><code class="literal">msg_rtime</code></td>
       <td>
        The time that the last message was received from the queue.
       </td>
      </tr>

      <tr>
       <td><code class="literal">msg_ctime</code></td>
       <td>
        The time that the queue was last changed.
       </td>
      </tr>

      <tr>
       <td><code class="literal">msg_qnum</code></td>
       <td>
        The number of messages waiting to be read from the queue.
       </td>
      </tr>

      <tr>
       <td><code class="literal">msg_qbytes</code></td>
       <td>
        The maximum number of bytes allowed in one message queue. On
        Linux, this value may be read and modified via
        <var class="filename">/proc/sys/kernel/msgmnb</var>.
       </td>
      </tr>

      <tr>
       <td><code class="literal">msg_lspid</code></td>
       <td>
        The pid of the process that sent the last message to the queue.
       </td>
      </tr>

      <tr>
       <td><code class="literal">msg_lrpid</code></td>
       <td>
        The pid of the process that received the last message from the queue.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
  <p class="para">
   Returns <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.msg-stat-queue-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>8.0.0</td>
       <td>
        <code class="parameter">queue</code> expects a <span class="classname"><a href="class.sysvmessagequeue.php" class="classname">SysvMessageQueue</a></span>
        instance now; previously, a <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> was expected.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>

 
 <div class="refsect1 seealso" id="refsect1-function.msg-stat-queue-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.msg-remove-queue.php" class="function" rel="rdfs-seeAlso">msg_remove_queue()</a> - Destroy a message queue</span></li>
    <li><span class="function"><a href="function.msg-receive.php" class="function" rel="rdfs-seeAlso">msg_receive()</a> - Receive a message from a message queue</span></li>
    <li><span class="function"><a href="function.msg-get-queue.php" class="function" rel="rdfs-seeAlso">msg_get_queue()</a> - Create or attach to a message queue</span></li>
    <li><span class="function"><a href="function.msg-set-queue.php" class="function" rel="rdfs-seeAlso">msg_set_queue()</a> - Set information in the message queue data structure</span></li>
   </ul>
  </p>
 </div>
  

</div><?php manual_footer($setup); ?>