Warn users of the buggy behaviour of sem_get() with non-PHP semaphores.

Fixes doc bug #66270 (sem_get() expects an already created pack of semaphores
to have 3 of them).


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332354 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Adam Harvey 2013-12-12 18:36:18 +00:00
parent 03083e6a66
commit 483d4d578f

View file

@ -101,6 +101,19 @@
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<warning>
<simpara>
When using <function>sem_get</function> to access a semaphore created
outside PHP, note that the semaphore must have been created as a set of 3
semaphores (for example, by specifying 3 as the <literal>nsems</literal>
parameter when calling the C <literal>semget()</literal> function),
otherwise PHP will be unable to access the semaphore.
</simpara>
</warning>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>