svn: /phpdoc/ja/trunk/reference/sem/functions/ sem-get.xml

[email protected] (Yoshinari Takaoka)
Newsgroups php.doc.ja
Message-ID <[email protected]>
mumumu                                   Sat, 14 Mar 2020 22:52:31 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=349438

Log:
Fix #71956: sem_get(0) creating an infinite amount of semaphores

Bug: https://bugs.php.net/71956 (Closed) sem_get(0) creating an infinite amount of semaphores
      
Changed paths:
    U   phpdoc/ja/trunk/reference/sem/functions/sem-get.xml

Modified: phpdoc/ja/trunk/reference/sem/functions/sem-get.xml
===================================================================
--- phpdoc/ja/trunk/reference/sem/functions/sem-get.xml	2020-03-14 22:48:39 UTC (rev 349437)
+++ phpdoc/ja/trunk/reference/sem/functions/sem-get.xml	2020-03-14 22:52:31 UTC (rev 349438)
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 334605 Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 349425 Maintainer: hirokawa Status: ready -->
+<!-- Credits: mumumu -->
 <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.sem-get">
  <refnamediv>
   <refname>sem_get</refname>
@@ -26,6 +27,10 @@
    別のセマフォ ID が返されます。
    しかし、どちらの ID も同じそのセマフォをアクセスします。
   </para>
+  <para>
+   <parameter>key</parameter> に <literal>0</literal> を指定すると、
+   <function>sem_get</function> が呼び出される度に新しい非公開のセマフォが作られます。
+  </para>
  </refsect1>

  <refsect1 role="parameters">
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.