[doc-en] master: sem: fix XML to remove useless wrapping para tags via script

From: Date: Mon, 26 Jan 2026 15:32:40 +0000
Subject: [doc-en] master: sem: fix XML to remove useless wrapping para tags via script
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-23094@lists.php.net to get a copy of this message
Author: Gina Peter Banyard (Girgias) Date: 2026-01-26T15:32:38Z Commit: https://github.com/php/doc-en/commit/9f2874ae15e66f4d828e8a4e7965cf03e4ed4ef7 Raw diff: https://github.com/php/doc-en/commit/9f2874ae15e66f4d828e8a4e7965cf03e4ed4ef7.diff sem: fix XML to remove useless wrapping para tags via script Changed paths: M reference/sem/functions/ftok.xml M reference/sem/functions/msg-get-queue.xml M reference/sem/functions/msg-queue-exists.xml M reference/sem/functions/msg-receive.xml M reference/sem/functions/msg-remove-queue.xml M reference/sem/functions/msg-send.xml M reference/sem/functions/msg-set-queue.xml M reference/sem/functions/msg-stat-queue.xml M reference/sem/functions/sem-acquire.xml M reference/sem/functions/sem-get.xml M reference/sem/functions/sem-release.xml M reference/sem/functions/sem-remove.xml M reference/sem/functions/shm-attach.xml M reference/sem/functions/shm-detach.xml M reference/sem/functions/shm-get-var.xml M reference/sem/functions/shm-has-var.xml M reference/sem/functions/shm-put-var.xml M reference/sem/functions/shm-remove-var.xml M reference/sem/functions/shm-remove.xml M reference/sem/ini.xml Diff: diff --git a/reference/sem/functions/ftok.xml b/reference/sem/functions/ftok.xml index e04cf3c8774b..046ce324575b 100644 --- a/reference/sem/functions/ftok.xml +++ b/reference/sem/functions/ftok.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.ftok" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ftok"> <refnamediv> <refname>ftok</refname> <refpurpose>Convert a pathname and a project identifier to a System V IPC key</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -17,32 +17,30 @@ The function converts the <parameter>filename</parameter> of an existing accessible file and a project identifier into an <literal>integer</literal> for use with for example - <function>shmop_open</function> and other System V IPC keys. + <function>shmop_open</function> and other System V IPC keys. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>filename</parameter></term> - <listitem> - <para> - Path to an accessible file. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>project_id</parameter></term> - <listitem> - <para> - Project identifier. This must be a one character string. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>filename</parameter></term> + <listitem> + <para> + Path to an accessible file. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>project_id</parameter></term> + <listitem> + <para> + Project identifier. This must be a one character string. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -55,12 +53,10 @@ <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>shmop_open</function></member> - <member><function>sem_get</function></member> - </simplelist> - </para> + <simplelist> + <member><function>shmop_open</function></member> + <member><function>sem_get</function></member> + </simplelist> </refsect1> </refentry> diff --git a/reference/sem/functions/msg-get-queue.xml b/reference/sem/functions/msg-get-queue.xml index 40003564c4e6..b8e4c9efdff9 100644 --- a/reference/sem/functions/msg-get-queue.xml +++ b/reference/sem/functions/msg-get-queue.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.msg-get-queue" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.msg-get-queue"> <refnamediv> <refname>msg_get_queue</refname> <refpurpose>Create or attach to a message queue</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -27,27 +27,25 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>key</parameter></term> - <listitem> - <para> - Message queue numeric ID - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>permissions</parameter></term> - <listitem> - <para> - Queue permissions. Default to 0666. If the message queue already - exists, the <parameter>permissions</parameter> will be ignored. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>key</parameter></term> + <listitem> + <para> + Message queue numeric ID + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>permissions</parameter></term> + <listitem> + <para> + Queue permissions. Default to 0666. If the message queue already + exists, the <parameter>permissions</parameter> will be ignored. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -60,41 +58,37 @@ <refsect1 role="changelog"> &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>8.0.0</entry> - <entry> - On success, this function returns a <classname>SysvMessageQueue</classname> instance now; - previously, a <type>resource</type> was returned. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + On success, this function returns a <classname>SysvMessageQueue</classname> instance now; + previously, a <type>resource</type> was returned. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </refsect1> - + <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>msg_remove_queue</function></member> - <member><function>msg_receive</function></member> - <member><function>msg_send</function></member> - <member><function>msg_stat_queue</function></member> - <member><function>msg_set_queue</function></member> - </simplelist> - </para> - </refsect1> + <simplelist> + <member><function>msg_remove_queue</function></member> + <member><function>msg_receive</function></member> + <member><function>msg_send</function></member> + <member><function>msg_stat_queue</function></member> + <member><function>msg_set_queue</function></member> + </simplelist> + </refsect1> </refentry> <!-- Keep this comment at the end of the file diff --git a/reference/sem/functions/msg-queue-exists.xml b/reference/sem/functions/msg-queue-exists.xml index 6ad0d3c5ff87..5e21efdc17c8 100644 --- a/reference/sem/functions/msg-queue-exists.xml +++ b/reference/sem/functions/msg-queue-exists.xml @@ -5,7 +5,7 @@ <refname>msg_queue_exists</refname> <refpurpose>Check whether a message queue exists</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -19,18 +19,16 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>key</parameter></term> - <listitem> - <para> - Queue key. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>key</parameter></term> + <listitem> + <para> + Queue key. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -42,17 +40,14 @@ <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>msg_remove_queue</function></member> - <member><function>msg_receive</function></member> - <member><function>msg_stat_queue</function></member> - </simplelist> - </para> - </refsect1> + <simplelist> + <member><function>msg_remove_queue</function></member> + <member><function>msg_receive</function></member> + <member><function>msg_stat_queue</function></member> + </simplelist> + </refsect1> </refentry> - <!-- Keep this comment at the end of the file Local variables: mode: sgml diff --git a/reference/sem/functions/msg-receive.xml b/reference/sem/functions/msg-receive.xml index 0fbcb868f571..92267bb7e78e 100644 --- a/reference/sem/functions/msg-receive.xml +++ b/reference/sem/functions/msg-receive.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.msg-receive" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.msg-receive"> <refnamediv> <refname>msg_receive</refname> <refpurpose>Receive a message from a message queue</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -28,130 +28,128 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>queue</parameter></term> - <listitem> - <para> - The message queue. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>desired_message_type</parameter></term> - <listitem> - <para> - If <parameter>desired_message_type</parameter> is 0, the message from the front - of the queue is returned. If <parameter>desired_message_type</parameter> is - greater than 0, then the first message of that type is returned. - If <parameter>desired_message_type</parameter> is less than 0, the first - message on the queue with a type less than or equal to the - absolute value of <parameter>desired_message_type</parameter> will be read. - If no messages match the criteria, your script will wait until a suitable - message arrives on the queue. You can prevent the script from blocking - by specifying <constant>MSG_IPC_NOWAIT</constant> in the - <parameter>flags</parameter> parameter. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>received_message_type</parameter></term> - <listitem> - <para> - The type of the message that was received will be stored in this - parameter. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>max_message_size</parameter></term> - <listitem> - <para> - The maximum size of message to be accepted is specified by the - <parameter>max_message_size</parameter>; if the message in the queue is larger - than this size the function will fail (unless you set - <parameter>flags</parameter> as described below). - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>message</parameter></term> - <listitem> - <para> - The received message will be stored in <parameter>message</parameter>, - unless there were errors receiving the message. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>unserialize</parameter></term> - <listitem> - <para> - If set to - &true;, the message is treated as though it was serialized using the - same mechanism as the session module. The message will be unserialized - and then returned to your script. This allows you to easily receive - arrays or complex object structures from other PHP scripts, or if you - are using the WDDX serializer, from any WDDX compatible source. - </para> - <para> - If <parameter>unserialize</parameter> is &false;, the message will be - returned as a binary-safe string. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>flags</parameter></term> - <listitem> - <para> - The optional <parameter>flags</parameter> allows you to pass flags to the - low-level msgrcv system call. It defaults to 0, but you may specify one - or more of the following values (by adding or ORing them together). - <table> - <title>Flag values for msg_receive</title> - <tgroup cols="2"> - <tbody> - <row> - <entry><constant>MSG_IPC_NOWAIT</constant></entry> - <entry>If there are no messages of the - <parameter>desired_message_type</parameter>, return immediately and do not - wait. The function will fail and return an integer value - corresponding to <constant>MSG_ENOMSG</constant>. - </entry> - </row> - <row> - <entry><constant>MSG_EXCEPT</constant></entry> - <entry>Using this flag in combination with a - <parameter>desired_message_type</parameter> greater than 0 will cause the - function to receive the first message that is not equal to - <parameter>desired_message_type</parameter>.</entry> - </row> - <row> - <entry><constant>MSG_NOERROR</constant></entry> - <entry> - If the message is longer than <parameter>max_message_size</parameter>, - setting this flag will truncate the message to - <parameter>max_message_size</parameter> and will not signal an error. - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>error_code</parameter></term> - <listitem> - <para> - If the function fails, the optional <parameter>error_code</parameter> - will be set to the value of the system errno variable. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>queue</parameter></term> + <listitem> + <para> + The message queue. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>desired_message_type</parameter></term> + <listitem> + <para> + If <parameter>desired_message_type</parameter> is 0, the message from the front + of the queue is returned. If <parameter>desired_message_type</parameter> is + greater than 0, then the first message of that type is returned. + If <parameter>desired_message_type</parameter> is less than 0, the first + message on the queue with a type less than or equal to the + absolute value of <parameter>desired_message_type</parameter> will be read. + If no messages match the criteria, your script will wait until a suitable + message arrives on the queue. You can prevent the script from blocking + by specifying <constant>MSG_IPC_NOWAIT</constant> in the + <parameter>flags</parameter> parameter. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>received_message_type</parameter></term> + <listitem> + <para> + The type of the message that was received will be stored in this + parameter. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>max_message_size</parameter></term> + <listitem> + <para> + The maximum size of message to be accepted is specified by the + <parameter>max_message_size</parameter>; if the message in the queue is larger + than this size the function will fail (unless you set + <parameter>flags</parameter> as described below). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>message</parameter></term> + <listitem> + <para> + The received message will be stored in <parameter>message</parameter>, + unless there were errors receiving the message. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>unserialize</parameter></term> + <listitem> + <para> + If set to + &true;, the message is treated as though it was serialized using the + same mechanism as the session module. The message will be unserialized + and then returned to your script. This allows you to easily receive + arrays or complex object structures from other PHP scripts, or if you + are using the WDDX serializer, from any WDDX compatible source. + </para> + <para> + If <parameter>unserialize</parameter> is &false;, the message will be + returned as a binary-safe string. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>flags</parameter></term> + <listitem> + <para> + The optional <parameter>flags</parameter> allows you to pass flags to the + low-level msgrcv system call. It defaults to 0, but you may specify one + or more of the following values (by adding or ORing them together). + <table> + <title>Flag values for msg_receive</title> + <tgroup cols="2"> + <tbody> + <row> + <entry><constant>MSG_IPC_NOWAIT</constant></entry> + <entry>If there are no messages of the + <parameter>desired_message_type</parameter>, return immediately and do not + wait. The function will fail and return an integer value + corresponding to <constant>MSG_ENOMSG</constant>. + </entry> + </row> + <row> + <entry><constant>MSG_EXCEPT</constant></entry> + <entry>Using this flag in combination with a + <parameter>desired_message_type</parameter> greater than 0 will cause the + function to receive the first message that is not equal to + <parameter>desired_message_type</parameter>.</entry> + </row> + <row> + <entry><constant>MSG_NOERROR</constant></entry> + <entry> + If the message is longer than <parameter>max_message_size</parameter>, + setting this flag will truncate the message to + <parameter>max_message_size</parameter> and will not signal an error. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>error_code</parameter></term> + <listitem> + <para> + If the function fails, the optional <parameter>error_code</parameter> + will be set to the value of the system errno variable. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -169,40 +167,36 @@ <refsect1 role="changelog"> &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>8.0.0</entry> - <entry> - <parameter>queue</parameter> expects a <classname>SysvMessageQueue</classname> - instance now; previously, a <type>resource</type> was expected. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>queue</parameter> expects a <classname>SysvMessageQueue</classname> + instance now; previously, a <type>resource</type> was expected. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </refsect1> - + <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>msg_remove_queue</function></member> - <member><function>msg_send</function></member> - <member><function>msg_stat_queue</function></member> - <member><function>msg_set_queue</function></member> - </simplelist> - </para> - </refsect1> + <simplelist> + <member><function>msg_remove_queue</function></member> + <member><function>msg_send</function></member> + <member><function>msg_stat_queue</function></member> + <member><function>msg_set_queue</function></member> + </simplelist> + </refsect1> </refentry> <!-- Keep this comment at the end of the file diff --git a/reference/sem/functions/msg-remove-queue.xml b/reference/sem/functions/msg-remove-queue.xml index 5bba88fa50e4..0e0c456fc7bd 100644 --- a/reference/sem/functions/msg-remove-queue.xml +++ b/reference/sem/functions/msg-remove-queue.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.msg-remove-queue" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.msg-remove-queue"> <refnamediv> <refname>msg_remove_queue</refname> <refpurpose>Destroy a message queue</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -22,18 +22,16 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>queue</parameter></term> - <listitem> - <para> - The message queue. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>queue</parameter></term> + <listitem> + <para> + The message queue. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -45,40 +43,36 @@ <refsect1 role="changelog"> &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>8.0.0</entry> - <entry> - <parameter>queue</parameter> expects a <classname>SysvMessageQueue</classname> - instance now; previously, a <type>resource</type> was expected. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>queue</parameter> expects a <classname>SysvMessageQueue</classname> + instance now; previously, a <type>resource</type> was expected. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </refsect1> - + <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>msg_get_queue</function></member> - <member><function>msg_receive</function></member> - <member><function>msg_stat_queue</function></member> - <member><function>msg_set_queue</function></member> - </simplelist> - </para> - </refsect1> + <simplelist> + <member><function>msg_get_queue</function></member> + <member><function>msg_receive</function></member> + <member><function>msg_stat_queue</function></member> + <member><function>msg_set_queue</function></member> + </simplelist> + </refsect1> </refentry> <!-- Keep this comment at the end of the file diff --git a/reference/sem/functions/msg-send.xml b/reference/sem/functions/msg-send.xml index d84f075ad3cb..0cc4bb287832 100644 --- a/reference/sem/functions/msg-send.xml +++ b/reference/sem/functions/msg-send.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.msg-send" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.msg-send"> <refnamediv> <refname>msg_send</refname> <refpurpose>Send a message to a message queue</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -26,80 +26,78 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>queue</parameter></term> - <listitem> - <para> - The message queue. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>message_type</parameter></term> - <listitem> - <para> - The type of the message (MUST be greater than 0) - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>message</parameter></term> - <listitem> - <para> - The body of the message. - </para> - <note> - <para> - If <parameter>serialize</parameter> set to &false; is supplied, - MUST be of type: <type>string</type>, <type>int</type>, <type>float</type> - or <type>bool</type>. In other case a warning will be issued. - </para> - </note> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>serialize</parameter></term> - <listitem> - <para> - The optional <parameter>serialize</parameter> controls how the - <parameter>message</parameter> is sent. <parameter>serialize</parameter> - defaults to &true; which means that the <parameter>message</parameter> is - serialized using the same mechanism as the session module before being - sent to the queue. This allows complex arrays and objects to be sent to - other PHP scripts, or if you are using the WDDX serializer, to any WDDX - compatible client. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>blocking</parameter></term> - <listitem> + <variablelist> + <varlistentry> + <term><parameter>queue</parameter></term> + <listitem> + <para> + The message queue. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>message_type</parameter></term> + <listitem> + <para> + The type of the message (MUST be greater than 0) + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>message</parameter></term> + <listitem> + <para> + The body of the message. + </para> + <note> <para> - If the message is too large to fit in the queue, your script will wait - until another process reads messages from the queue and frees enough - space for your message to be sent. - This is called blocking; you can prevent blocking by setting the - optional <parameter>blocking</parameter> parameter to &false;, in which - case <function>msg_send</function> will immediately return &false; if the - message is too big for the queue, and set the optional - <parameter>error_code</parameter> to <constant>MSG_EAGAIN</constant>, - indicating that you should try to send your message again a little - later on. + If <parameter>serialize</parameter> set to &false; is supplied, + MUST be of type: <type>string</type>, <type>int</type>, <type>float</type> + or <type>bool</type>. In other case a warning will be issued. </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>error_code</parameter></term> - <listitem> - <para> - If the function fails, the optional errorcode will be set to the value of the system errno variable. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + </note> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>serialize</parameter></term> + <listitem> + <para> + The optional <parameter>serialize</parameter> controls how the + <parameter>message</parameter> is sent. <parameter>serialize</parameter> + defaults to &true; which means that the <parameter>message</parameter> is + serialized using the same mechanism as the session module before being + sent to the queue. This allows complex arrays and objects to be sent to + other PHP scripts, or if you are using the WDDX serializer, to any WDDX + compatible client. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>blocking</parameter></term> + <listitem> + <para> + If the message is too large to fit in the queue, your script will wait + until another process reads messages from the queue and frees enough + space for your message to be sent. + This is called blocking; you can prevent blocking by setting the + optional <parameter>blocking</parameter> parameter to &false;, in which + case <function>msg_send</function> will immediately return &false; if the + message is too big for the queue, and set the optional + <parameter>error_code</parameter> to <constant>MSG_EAGAIN</constant>, + indicating that you should try to send your message again a little + later on. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>error_code</parameter></term> + <listitem> + <para> + If the function fails, the optional errorcode will be set to the value of the system errno variable. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -117,40 +115,36 @@ <refsect1 role="changelog"> &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>8.0.0</entry> - <entry> - <parameter>queue</parameter> expects a <classname>SysvMessageQueue</classname> - instance now; previously, a <type>resource</type> was expected. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>queue</parameter> expects a <classname>SysvMessageQueue</classname> + instance now; previously, a <type>resource</type> was expected. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </refsect1> - + <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>msg_remove_queue</function></member> - <member><function>msg_receive</function></member> - <member><function>msg_stat_queue</function></member> - <member><function>msg_set_queue</function></member> - </simplelist> - </para> - </refsect1> + <simplelist> + <member><function>msg_remove_queue</function></member> + <member><function>msg_receive</function></member> + <member><function>msg_stat_queue</function></member> + <member><function>msg_set_queue</function></member> + </simplelist> + </refsect1> </refentry> <!-- Keep this comment at the end of the file diff --git a/reference/sem/functions/msg-set-queue.xml b/reference/sem/functions/msg-set-queue.xml index f8b8e8554262..c83a2ce464a4 100644 --- a/reference/sem/functions/msg-set-queue.xml +++ b/reference/sem/functions/msg-set-queue.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.msg-set-queue" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.msg-set-queue"> <refnamediv> <refname>msg_set_queue</refname> <refpurpose>Set information in the message queue data structure</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -29,27 +29,25 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>queue</parameter></term> - <listitem> - <para> - The message queue. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>data</parameter></term> - <listitem> - <para> - You specify the values you require by setting the value of the keys - that you require in the <parameter>data</parameter> array. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>queue</parameter></term> + <listitem> + <para> + The message queue. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>data</parameter></term> + <listitem> + <para> + You specify the values you require by setting the value of the keys + that you require in the <parameter>data</parameter> array. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -61,40 +59,36 @@ <refsect1 role="changelog"> &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>8.0.0</entry> - <entry> - <parameter>queue</parameter> expects a <classname>SysvMessageQueue</classname> - instance now; previously, a <type>resource</type> was expected. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>queue</parameter> expects a <classname>SysvMessageQueue</classname> + instance now; previously, a <type>resource</type> was expected. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </refsect1> - + <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>msg_remove_queue</function></member> - <member><function>msg_receive</function></member> - <member><function>msg_stat_queue</function></member> - <member><function>msg_get_queue</function></member> - </simplelist> - </para> - </refsect1> + <simplelist> + <member><function>msg_remove_queue</function></member> + <member><function>msg_receive</function></member> + <member><function>msg_stat_queue</function></member> + <member><function>msg_get_queue</function></member> + </simplelist> + </refsect1> </refentry> <!-- Keep this comment at the end of the file diff --git a/reference/sem/functions/msg-stat-queue.xml b/reference/sem/functions/msg-stat-queue.xml index 4ca3ec0808ca..8c282dd87f98 100644 --- a/reference/sem/functions/msg-stat-queue.xml +++ b/reference/sem/functions/msg-stat-queue.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.msg-stat-queue" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.msg-stat-queue"> <refnamediv> <refname>msg_stat_queue</refname> <refpurpose>Returns information from the message queue data structure</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -22,18 +22,16 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>queue</parameter></term> - <listitem> - <para> - The message queue. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>queue</parameter></term> + <listitem> + <para> + The message queue. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -118,40 +116,36 @@ <refsect1 role="changelog"> &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>8.0.0</entry> - <entry> - <parameter>queue</parameter> expects a <classname>SysvMessageQueue</classname> - instance now; previously, a <type>resource</type> was expected. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>queue</parameter> expects a <classname>SysvMessageQueue</classname> + instance now; previously, a <type>resource</type> was expected. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </refsect1> - + <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>msg_remove_queue</function></member> - <member><function>msg_receive</function></member> - <member><function>msg_get_queue</function></member> - <member><function>msg_set_queue</function></member> - </simplelist> - </para> - </refsect1> + <simplelist> + <member><function>msg_remove_queue</function></member> + <member><function>msg_receive</function></member> + <member><function>msg_get_queue</function></member> + <member><function>msg_set_queue</function></member> + </simplelist> + </refsect1> </refentry> <!-- Keep this comment at the end of the file diff --git a/reference/sem/functions/sem-acquire.xml b/reference/sem/functions/sem-acquire.xml index d776a11b3964..e445bebff149 100644 --- a/reference/sem/functions/sem-acquire.xml +++ b/reference/sem/functions/sem-acquire.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.sem-acquire" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.sem-acquire"> <refnamediv> <refname>sem_acquire</refname> <refpurpose>Acquire a semaphore</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -25,77 +25,71 @@ generated. </para> </refsect1> - + <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>semaphore</parameter></term> - <listitem> - <para> - <parameter>semaphore</parameter> is a semaphore - obtained from <function>sem_get</function>. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>non_blocking</parameter></term> - <listitem> - <para> - Specifies if the process shouldn't wait for the semaphore to be acquired. - If set to &true;, the call will return - &false; immediately if a semaphore cannot be immediately - acquired. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>semaphore</parameter></term> + <listitem> + <para> + <parameter>semaphore</parameter> is a semaphore + obtained from <function>sem_get</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>non_blocking</parameter></term> + <listitem> + <para> + Specifies if the process shouldn't wait for the semaphore to be acquired. + If set to &true;, the call will return + &false; immediately if a semaphore cannot be immediately + acquired. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> - + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> - + <refsect1 role="changelog"> &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>8.0.0</entry> - <entry> - <parameter>semaphore</parameter> expects a <classname>SysvSemaphore</classname> - instance now; previously, a <type>resource</type> was expected. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>semaphore</parameter> expects a <classname>SysvSemaphore</classname> + instance now; previously, a <type>resource</type> was expected. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </refsect1> - + <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>sem_get</function></member> - <member><function>sem_release</function></member> - </simplelist> - </para> - </refsect1> - + <simplelist> + <member><function>sem_get</function></member> + <member><function>sem_release</function></member> + </simplelist> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: diff --git a/reference/sem/functions/sem-get.xml b/reference/sem/functions/sem-get.xml index 0bd301537129..c6533d0b17dc 100644 --- a/reference/sem/functions/sem-get.xml +++ b/reference/sem/functions/sem-get.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.sem-get" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.sem-get"> <refnamediv> <refname>sem_get</refname> <refpurpose>Get a semaphore id</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -32,45 +32,43 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>key</parameter></term> - <listitem> - <para> - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>max_acquire</parameter></term> - <listitem> - <para> - The number of processes that can acquire the semaphore simultaneously - is set to <parameter>max_acquire</parameter>. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>permissions</parameter></term> - <listitem> - <para> - The semaphore permissions. Actually this value is - set only if the process finds it is the only process currently - attached to the semaphore. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>auto_release</parameter></term> - <listitem> - <para> - Specifies if the semaphore should be automatically released on request - shutdown. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>key</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>max_acquire</parameter></term> + <listitem> + <para> + The number of processes that can acquire the semaphore simultaneously + is set to <parameter>max_acquire</parameter>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>permissions</parameter></term> + <listitem> + <para> + The semaphore permissions. Actually this value is + set only if the process finds it is the only process currently + attached to the semaphore. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>auto_release</parameter></term> + <listitem> + <para> + Specifies if the semaphore should be automatically released on request + shutdown. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -83,36 +81,34 @@ <refsect1 role="changelog"> &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>8.0.0</entry> - <entry> - On success, this function returns a <classname>SysvSemaphore</classname> instance now; - previously, a <type>resource</type> was returned. - </entry> - </row> - <row> - <entry>8.0.0</entry> - <entry> - The type of <parameter>auto_release</parameter> has been changed from - <type>int</type> to <type>bool</type>. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + On success, this function returns a <classname>SysvSemaphore</classname> instance now; + previously, a <type>resource</type> was returned. + </entry> + </row> + <row> + <entry>8.0.0</entry> + <entry> + The type of <parameter>auto_release</parameter> has been changed from + <type>int</type> to <type>bool</type>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </refsect1> - + <refsect1 role="notes"> &reftitle.notes; <warning> @@ -128,14 +124,12 @@ <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>sem_acquire</function></member> - <member><function>sem_release</function></member> - <member><function>ftok</function></member> - </simplelist> - </para> - </refsect1> + <simplelist> + <member><function>sem_acquire</function></member> + <member><function>sem_release</function></member> + <member><function>ftok</function></member> + </simplelist> + </refsect1> </refentry> <!-- Keep this comment at the end of the file diff --git a/reference/sem/functions/sem-release.xml b/reference/sem/functions/sem-release.xml index c1a904c78020..1198d81eeb82 100644 --- a/reference/sem/functions/sem-release.xml +++ b/reference/sem/functions/sem-release.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.sem-release" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.sem-release"> <refnamediv> <refname>sem_release</refname> <refpurpose>Release a semaphore</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -25,19 +25,17 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>semaphore</parameter></term> - <listitem> - <para> - A Semaphore as returned by - <function>sem_get</function>. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>semaphore</parameter></term> + <listitem> + <para> + A Semaphore as returned by + <function>sem_get</function>. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -49,38 +47,34 @@ <refsect1 role="changelog"> &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>8.0.0</entry> - <entry> - <parameter>semaphore</parameter> expects a <classname>SysvSemaphore</classname> - instance now; previously, a <type>resource</type> was expected. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>semaphore</parameter> expects a <classname>SysvSemaphore</classname> + instance now; previously, a <type>resource</type> was expected. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </refsect1> - + <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>sem_get</function></member> - <member><function>sem_acquire</function></member> - </simplelist> - </para> - </refsect1> + <simplelist> + <member><function>sem_get</function></member> + <member><function>sem_acquire</function></member> + </simplelist> + </refsect1> </refentry> <!-- Keep this comment at the end of the file diff --git a/reference/sem/functions/sem-remove.xml b/reference/sem/functions/sem-remove.xml index 98ef3b8ff667..a1d32920ea74 100644 --- a/reference/sem/functions/sem-remove.xml +++ b/reference/sem/functions/sem-remove.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.sem-remove" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.sem-remove"> <refnamediv> <refname>sem_remove</refname> <refpurpose>Remove a semaphore</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -22,19 +22,17 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>semaphore</parameter></term> - <listitem> - <para> - A semaphore as returned - by <function>sem_get</function>. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>semaphore</parameter></term> + <listitem> + <para> + A semaphore as returned + by <function>sem_get</function>. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -46,39 +44,35 @@ <refsect1 role="changelog"> &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>8.0.0</entry> - <entry> - <parameter>semaphore</parameter> expects a <classname>SysvSemaphore</classname> - instance now; previously, a <type>resource</type> was expected. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>semaphore</parameter> expects a <classname>SysvSemaphore</classname> + instance now; previously, a <type>resource</type> was expected. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </refsect1> - + <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>sem_get</function></member> - <member><function>sem_release</function></member> - <member><function>sem_acquire</function></member> - </simplelist> - </para> - </refsect1> + <simplelist> + <member><function>sem_get</function></member> + <member><function>sem_release</function></member> + <member><function>sem_acquire</function></member> + </simplelist> + </refsect1> </refentry> <!-- Keep this comment at the end of the file diff --git a/reference/sem/functions/shm-attach.xml b/reference/sem/functions/shm-attach.xml index 5b7d907434bb..ca33e0be4325 100644 --- a/reference/sem/functions/shm-attach.xml +++ b/reference/sem/functions/shm-attach.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.shm-attach" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.shm-attach"> <refnamediv> <refname>shm_attach</refname> <refpurpose>Creates or open a shared memory segment</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -17,8 +17,8 @@ <para> <function>shm_attach</function> returns an id that can be used to access the System V shared memory with the given <parameter>key</parameter>, the - first call creates the shared memory segment with - <parameter>size</parameter> and the optional perm-bits + first call creates the shared memory segment with + <parameter>size</parameter> and the optional perm-bits <parameter>permissions</parameter>. </para> <para> @@ -32,36 +32,34 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>key</parameter></term> - <listitem> - <para> - A numeric shared memory segment ID - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>size</parameter></term> - <listitem> - <para> - The memory size. If not provided, default to the - <literal>sysvshm.init_mem</literal> in the &php.ini;, otherwise 10000 - bytes. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>permissions</parameter></term> - <listitem> - <para> - The optional permission bits. Default to 0666. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>key</parameter></term> + <listitem> + <para> + A numeric shared memory segment ID + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>size</parameter></term> + <listitem> + <para> + The memory size. If not provided, default to the + <literal>sysvshm.init_mem</literal> in the &php.ini;, otherwise 10000 + bytes. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>permissions</parameter></term> + <listitem> + <para> + The optional permission bits. Default to 0666. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -102,13 +100,11 @@ <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>shm_detach</function></member> - <member><function>ftok</function></member> - </simplelist> - </para> - </refsect1> + <simplelist> + <member><function>shm_detach</function></member> + <member><function>ftok</function></member> + </simplelist> + </refsect1> </refentry> <!-- Keep this comment at the end of the file diff --git a/reference/sem/functions/shm-detach.xml b/reference/sem/functions/shm-detach.xml index 879dc7f7bb6c..85c2576d6c94 100644 --- a/reference/sem/functions/shm-detach.xml +++ b/reference/sem/functions/shm-detach.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.shm-detach" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.shm-detach"> <refnamediv> <refname>shm_detach</refname> <refpurpose>Disconnects from shared memory segment</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -22,18 +22,16 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>shm</parameter></term> - <listitem> - <para> - A shared memory segment obtained from <function>shm_attach</function>. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>shm</parameter></term> + <listitem> + <para> + A shared memory segment obtained from <function>shm_attach</function>. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -45,39 +43,35 @@ <refsect1 role="changelog"> &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>8.0.0</entry> - <entry> - <parameter>shm</parameter> expects a <classname>SysvSharedMemory</classname> - instance now; previously, a <type>resource</type> was expected. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>shm</parameter> expects a <classname>SysvSharedMemory</classname> + instance now; previously, a <type>resource</type> was expected. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </refsect1> - + <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>shm_attach</function></member> - <member><function>shm_remove</function></member> - <member><function>shm_remove_var</function></member> - </simplelist> - </para> - </refsect1> + <simplelist> + <member><function>shm_attach</function></member> + <member><function>shm_remove</function></member> + <member><function>shm_remove_var</function></member> + </simplelist> + </refsect1> </refentry> <!-- Keep this comment at the end of the file diff --git a/reference/sem/functions/shm-get-var.xml b/reference/sem/functions/shm-get-var.xml index 533b0771ef69..890c4d3bbd77 100644 --- a/reference/sem/functions/shm-get-var.xml +++ b/reference/sem/functions/shm-get-var.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.shm-get-var" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.shm-get-var"> <refnamediv> <refname>shm_get_var</refname> <refpurpose>Returns a variable from shared memory</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -22,26 +22,24 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>shm</parameter></term> - <listitem> - <para> - A shared memory segment obtained from <function>shm_attach</function>. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>key</parameter></term> - <listitem> - <para> - The variable key. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>shm</parameter></term> + <listitem> + <para> + A shared memory segment obtained from <function>shm_attach</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>key</parameter></term> + <listitem> + <para> + The variable key. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -53,37 +51,33 @@ <refsect1 role="changelog"> &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>8.0.0</entry> - <entry> - <parameter>shm</parameter> expects a <classname>SysvSharedMemory</classname> - instance now; previously, a <type>resource</type> was expected. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>shm</parameter> expects a <classname>SysvSharedMemory</classname> + instance now; previously, a <type>resource</type> was expected. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </refsect1> - + <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>shm_has_var</function></member> - <member><function>shm_put_var</function></member> - </simplelist> - </para> + <simplelist> + <member><function>shm_has_var</function></member> + <member><function>shm_put_var</function></member> + </simplelist> </refsect1> </refentry> diff --git a/reference/sem/functions/shm-has-var.xml b/reference/sem/functions/shm-has-var.xml index 9eb0ea216272..62a035a3ab62 100644 --- a/reference/sem/functions/shm-has-var.xml +++ b/reference/sem/functions/shm-has-var.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.shm-has-var" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.shm-has-var"> <refnamediv> <refname>shm_has_var</refname> <refpurpose>Check whether a specific entry exists</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -20,26 +20,24 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>shm</parameter></term> - <listitem> - <para> - A shared memory segment obtained from <function>shm_attach</function>. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>key</parameter></term> - <listitem> - <para> - The variable key. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>shm</parameter></term> + <listitem> + <para> + A shared memory segment obtained from <function>shm_attach</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>key</parameter></term> + <listitem> + <para> + The variable key. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -51,37 +49,33 @@ <refsect1 role="changelog"> &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>8.0.0</entry> - <entry> - <parameter>shm</parameter> expects a <classname>SysvSharedMemory</classname> - instance now; previously, a <type>resource</type> was expected. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>shm</parameter> expects a <classname>SysvSharedMemory</classname> + instance now; previously, a <type>resource</type> was expected. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </refsect1> - + <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>shm_get_var</function></member> - <member><function>shm_put_var</function></member> - </simplelist> - </para> + <simplelist> + <member><function>shm_get_var</function></member> + <member><function>shm_put_var</function></member> + </simplelist> </refsect1> </refentry> diff --git a/reference/sem/functions/shm-put-var.xml b/reference/sem/functions/shm-put-var.xml index 9200e14618ce..912a0a3e0885 100644 --- a/reference/sem/functions/shm-put-var.xml +++ b/reference/sem/functions/shm-put-var.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.shm-put-var" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.shm-put-var"> <refnamediv> <refname>shm_put_var</refname> <refpurpose>Inserts or updates a variable in shared memory</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -29,37 +29,35 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>shm</parameter></term> - <listitem> - <para> - A shared memory segment obtained from <function>shm_attach</function>. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>key</parameter></term> - <listitem> - <para> - The variable key. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>value</parameter></term> - <listitem> - <para> - The variable. All <link linkend="language.types">variable types</link> - that <function>serialize</function> supports may be used: generally - this means all types except for resources and some internal objects - that cannot be serialized. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>shm</parameter></term> + <listitem> + <para> + A shared memory segment obtained from <function>shm_attach</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>key</parameter></term> + <listitem> + <para> + The variable key. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>value</parameter></term> + <listitem> + <para> + The variable. All <link linkend="language.types">variable types</link> + that <function>serialize</function> supports may be used: generally + this means all types except for resources and some internal objects + that cannot be serialized. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -71,37 +69,33 @@ <refsect1 role="changelog"> &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>8.0.0</entry> - <entry> - <parameter>shm</parameter> expects a <classname>SysvSharedMemory</classname> - instance now; previously, a <type>resource</type> was expected. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>shm</parameter> expects a <classname>SysvSharedMemory</classname> + instance now; previously, a <type>resource</type> was expected. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </refsect1> - + <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>shm_get_var</function></member> - <member><function>shm_has_var</function></member> - </simplelist> - </para> + <simplelist> + <member><function>shm_get_var</function></member> + <member><function>shm_has_var</function></member> + </simplelist> </refsect1> </refentry> diff --git a/reference/sem/functions/shm-remove-var.xml b/reference/sem/functions/shm-remove-var.xml index 673e301bbe71..2566e5c68747 100644 --- a/reference/sem/functions/shm-remove-var.xml +++ b/reference/sem/functions/shm-remove-var.xml @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.shm-remove-var" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.shm-remove-var"> <refnamediv> <refname>shm_remove_var</refname> <refpurpose>Removes a variable from shared memory </refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -22,26 +22,24 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>shm</parameter></term> - <listitem> - <para> - A shared memory segment obtained from <function>shm_attach</function>. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>key</parameter></term> - <listitem> - <para> - The variable key. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>shm</parameter></term> + <listitem> + <para> + A shared memory segment obtained from <function>shm_attach</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>key</parameter></term> + <listitem> + <para> + The variable key. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -53,36 +51,32 @@ <refsect1 role="changelog"> &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>8.0.0</entry> - <entry> - <parameter>shm</parameter> expects a <classname>SysvSharedMemory</classname> - instance now; previously, a <type>resource</type> was expected. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>shm</parameter> expects a <classname>SysvSharedMemory</classname> + instance now; previously, a <type>resource</type> was expected. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </refsect1> - + <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>shm_remove</function></member> - </simplelist> - </para> + <simplelist> + <member><function>shm_remove</function></member> + </simplelist> </refsect1> </refentry> diff --git a/reference/sem/functions/shm-remove.xml b/reference/sem/functions/shm-remove.xml index 0baa9f86b5a0..0f9dacad86cb 100644 --- a/reference/sem/functions/shm-remove.xml +++ b/reference/sem/functions/shm-remove.xml @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<refentry xml:id="function.shm-remove" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.shm-remove"> <refnamediv> <refname>shm_remove</refname> <refpurpose>Removes shared memory from Unix systems</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -20,18 +20,16 @@ <refsect1 role="parameters"> &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>shm</parameter></term> - <listitem> - <para> - A shared memory segment obtained from <function>shm_attach</function>. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> + <variablelist> + <varlistentry> + <term><parameter>shm</parameter></term> + <listitem> + <para> + A shared memory segment obtained from <function>shm_attach</function>. + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> <refsect1 role="returnvalues"> @@ -43,36 +41,32 @@ <refsect1 role="changelog"> &reftitle.changelog; - <para> - <informaltable> - <tgroup cols="2"> - <thead> - <row> - <entry>&Version;</entry> - <entry>&Description;</entry> - </row> - </thead> - <tbody> - <row> - <entry>8.0.0</entry> - <entry> - <parameter>shm</parameter> expects a <classname>SysvSharedMemory</classname> - instance now; previously, a <type>resource</type> was expected. - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>8.0.0</entry> + <entry> + <parameter>shm</parameter> expects a <classname>SysvSharedMemory</classname> + instance now; previously, a <type>resource</type> was expected. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> </refsect1> - + <refsect1 role="seealso"> &reftitle.seealso; - <para> - <simplelist> - <member><function>shm_remove_var</function></member> - </simplelist> - </para> + <simplelist> + <member><function>shm_remove_var</function></member> + </simplelist> </refsect1> </refentry> diff --git a/reference/sem/ini.xml b/reference/sem/ini.xml index 0d2bfa680588..5b11849298ee 100644 --- a/reference/sem/ini.xml +++ b/reference/sem/ini.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<section xml:id="sem.configuration" xmlns="http://docbook.org/ns/docbook"> +<section xmlns="http://docbook.org/ns/docbook" xml:id="sem.configuration"> &reftitle.runtime; &extension.runtime; <para> @@ -20,7 +20,7 @@ <entry><link linkend="ini.sysvshm.init-mem">sysvshm.init_mem</link></entry> <entry>10000</entry> <entry><constant>INI_SYSTEM</constant></entry> - <entry></entry> + <entry/> </row> </tbody> </tgroup> @@ -31,27 +31,24 @@ </para> &ini.descriptions.title; - - <para> - <variablelist> - <varlistentry xml:id="ini.sysvshm.init-mem"> - <term> - <parameter>sysvshm.init_mem</parameter> - <type>int</type> - </term> - <listitem> - <para> - A default size of the shared memory segment. - </para> - </listitem> - </varlistentry> + <variablelist> - </variablelist> - </para> + <varlistentry xml:id="ini.sysvshm.init-mem"> + <term> + <parameter>sysvshm.init_mem</parameter> + <type>int</type> + </term> + <listitem> + <para> + A default size of the shared memory segment. + </para> + </listitem> + </varlistentry> -</section> + </variablelist> +</section> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -72,4 +69,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> -

« previous php.doc.cvs (#23094) next »