cvs: phpdoc /en/reference/shmop book.xml constants.xml examples.xml reference.xml setup.xml
| From: | Philip Olson | Date: | Fri, 21 Dec 2007 19:41:37 +0000 |
| Subject: | cvs: phpdoc /en/reference/shmop book.xml constants.xml examples.xml reference.xml setup.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-685@lists.php.net to get a copy of this message | ||
philip Fri Dec 21 19:41:37 2007 UTC
Modified files:
/phpdoc/en/reference/shmop book.xml setup.xml constants.xml
examples.xml reference.xml
Log:
MFB: Upgrade to the new-reference-structure
- Split reference.xml into book.xml, setup.xml, contants.xml, and examples.xml
- Moved from reference.xml to book.xml:
- The intro text (partintro), and link to various pages
- Moved from reference.xml to setup.xml:
- The setup: requirements, installation, configuration, and resources
- Changed the intro ID from <extname>.intro to intro.<extname>
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/shmop/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/shmop/book.xml diff -u /dev/null phpdoc/en/reference/shmop/book.xml:1.2 --- /dev/null Fri Dec 21 19:41:37 2007 +++ phpdoc/en/reference/shmop/book.xml Fri Dec 21 19:41:37 2007 @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: fileprocess.process --> +<!-- Membership: bundled --> + +<book xml:id="book.shmop" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Shared Memory</title> + + <!-- {{{ preface --> + <preface xml:id="intro.shmop"> + &reftitle.intro; + <para> + Shmop is an easy to use set of functions that allows PHP to read, + write, create and delete Unix shared memory segments. + </para> + <note> + <simpara> + Versions of Windows previous to Windows 2000 do not support shared memory. + Under Windows, Shmop will only work when PHP is running as a web server + module, such as Apache or IIS (CLI and CGI will not work). + </simpara> + </note> + <note> + <simpara> + In PHP 4.0.3, these functions were prefixed by <literal>shm</literal> + rather than <literal>shmop</literal>. + </simpara> + </note> + </preface> + <!-- }}} --> + + &reference.shmop.setup; + &reference.shmop.constants; + &reference.shmop.examples; + &reference.shmop.reference; + +</book> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/shmop/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/shmop/setup.xml diff -u /dev/null phpdoc/en/reference/shmop/setup.xml:1.2 --- /dev/null Fri Dec 21 19:41:37 2007 +++ phpdoc/en/reference/shmop/setup.xml Fri Dec 21 19:41:37 2007 @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="shmop.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="shmop.requirements"> + &reftitle.required; + &no.requirement; + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.shmop.configure; + <!-- }}} --> + + <!-- {{{ Configuration --> + <section xml:id="shmop.configuration"> + &reftitle.runtime; + &no.config; + </section> + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="shmop.resources"> + &reftitle.resources; + &no.resource; + </section> + <!-- }}} --> + +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/shmop/constants.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/shmop/constants.xml diff -u /dev/null phpdoc/en/reference/shmop/constants.xml:1.2 --- /dev/null Fri Dec 21 19:41:37 2007 +++ phpdoc/en/reference/shmop/constants.xml Fri Dec 21 19:41:37 2007 @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<appendix xml:id="shmop.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.constants; + &no.constants; +</appendix> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/shmop/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/shmop/examples.xml diff -u /dev/null phpdoc/en/reference/shmop/examples.xml:1.2 --- /dev/null Fri Dec 21 19:41:37 2007 +++ phpdoc/en/reference/shmop/examples.xml Fri Dec 21 19:41:37 2007 @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="shmop.examples" xmlns="http://docbook.org/ns/docbook"> + &reftitle.examples; + <section xml:id="shmop.examples-basic"> + <para> + <example> + <title>Shared Memory Operations Overview</title> + <programlisting role="php"> +<![CDATA[ +<?php + +// Create 100 byte shared memory block with system id of 0xff3 +$shm_id = shmop_open(0xff3, "c", 0644, 100); +if (!$shm_id) { + echo "Couldn't create shared memory segment\n"; +} + +// Get shared memory block's size +$shm_size = shmop_size($shm_id); +echo "SHM Block Size: " . $shm_size . " has been created.\n"; + +// Lets write a test string into shared memory +$shm_bytes_written = shmop_write($shm_id, "my shared memory block", 0); +if ($shm_bytes_written != strlen("my shared memory block")) { + echo "Couldn't write the entire length of data\n"; +} + +// Now lets read the string back +$my_string = shmop_read($shm_id, 0, $shm_size); +if (!$my_string) { + echo "Couldn't read from shared memory block\n"; +} +echo "The data inside shared memory was: " . $my_string . "\n"; + +//Now lets delete the block and close the shared memory segment +if (!shmop_delete($shm_id)) { + echo "Couldn't mark shared memory block for deletion."; +} +shmop_close($shm_id); + +?> +]]> + </programlisting> + </example> + </para> + </section> +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/shmop/reference.xml?r1=1.18&r2=1.19&diff_format=u Index: phpdoc/en/reference/shmop/reference.xml diff -u phpdoc/en/reference/shmop/reference.xml:1.18 phpdoc/en/reference/shmop/reference.xml:1.19 --- phpdoc/en/reference/shmop/reference.xml:1.18 Mon Dec 10 17:06:09 2007 +++ phpdoc/en/reference/shmop/reference.xml Fri Dec 21 19:41:37 2007 @@ -1,106 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.18 $ --> -<!-- Purpose: fileprocess.process --> -<!-- Membership: bundled --> - +<!-- $Revision: 1.19 $ --> <reference xml:id="ref.shmop" xmlns="http://docbook.org/ns/docbook"> - <title>Shared Memory Functions</title> - <titleabbrev>shmop</titleabbrev> - - <partintro> - <section xml:id="shmop.intro"> - &reftitle.intro; - <para> - Shmop is an easy to use set of functions that allows PHP to read, - write, create and delete Unix shared memory segments. - </para> - <note> - <simpara> - Versions of Windows previous to Windows 2000 do not support shared memory. - Under Windows, Shmop will only work when PHP is running as a web server - module, such as Apache or IIS (CLI and CGI will not work). - </simpara> - </note> - <note> - <simpara> - In PHP 4.0.3, these functions were prefixed by <literal>shm</literal> - rather than <literal>shmop</literal>. - </simpara> - </note> - </section> - - <section xml:id="shmop.requirements"> - &reftitle.required; - &no.requirement; - </section> - - &reference.shmop.configure; - - <section xml:id="shmop.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="shmop.resources"> - &reftitle.resources; - <para> - </para> - </section> - - <section xml:id="shmop.constants"> - &reftitle.constants; - &no.constants; - </section> - - <section xml:id="shmop.examples"> - &reftitle.examples; - <para> - <example> - <title>Shared Memory Operations Overview</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// Create 100 byte shared memory block with system id of 0xff3 -$shm_id = shmop_open(0xff3, "c", 0644, 100); -if (!$shm_id) { - echo "Couldn't create shared memory segment\n"; -} - -// Get shared memory block's size -$shm_size = shmop_size($shm_id); -echo "SHM Block Size: " . $shm_size . " has been created.\n"; - -// Lets write a test string into shared memory -$shm_bytes_written = shmop_write($shm_id, "my shared memory block", 0); -if ($shm_bytes_written != strlen("my shared memory block")) { - echo "Couldn't write the entire length of data\n"; -} - -// Now lets read the string back -$my_string = shmop_read($shm_id, 0, $shm_size); -if (!$my_string) { - echo "Couldn't read from shared memory block\n"; -} -echo "The data inside shared memory was: " . $my_string . "\n"; + <title>Shared Memory &Functions;</title> + <titleabbrev>shmop</titleabbrev> -//Now lets delete the block and close the shared memory segment -if (!shmop_delete($shm_id)) { - echo "Couldn't mark shared memory block for deletion."; -} -shmop_close($shm_id); - -?> -]]> - </programlisting> - </example> - </para> - </section> - </partintro> - -&reference.shmop.entities.functions; + &reference.shmop.entities.functions; - </reference> +</reference> <!-- Keep this comment at the end of the file Local variables:
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/shmop/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/shmop/book.xml diff -u /dev/null phpdoc/en/reference/shmop/book.xml:1.2 --- /dev/null Fri Dec 21 19:41:37 2007 +++ phpdoc/en/reference/shmop/book.xml Fri Dec 21 19:41:37 2007 @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: fileprocess.process --> +<!-- Membership: bundled --> + +<book xml:id="book.shmop" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Shared Memory</title> + + <!-- {{{ preface --> + <preface xml:id="intro.shmop"> + &reftitle.intro; + <para> + Shmop is an easy to use set of functions that allows PHP to read, + write, create and delete Unix shared memory segments. + </para> + <note> + <simpara> + Versions of Windows previous to Windows 2000 do not support shared memory. + Under Windows, Shmop will only work when PHP is running as a web server + module, such as Apache or IIS (CLI and CGI will not work). + </simpara> + </note> + <note> + <simpara> + In PHP 4.0.3, these functions were prefixed by <literal>shm</literal> + rather than <literal>shmop</literal>. + </simpara> + </note> + </preface> + <!-- }}} --> + + &reference.shmop.setup; + &reference.shmop.constants; + &reference.shmop.examples; + &reference.shmop.reference; + +</book> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/shmop/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/shmop/setup.xml diff -u /dev/null phpdoc/en/reference/shmop/setup.xml:1.2 --- /dev/null Fri Dec 21 19:41:37 2007 +++ phpdoc/en/reference/shmop/setup.xml Fri Dec 21 19:41:37 2007 @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="shmop.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="shmop.requirements"> + &reftitle.required; + &no.requirement; + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.shmop.configure; + <!-- }}} --> + + <!-- {{{ Configuration --> + <section xml:id="shmop.configuration"> + &reftitle.runtime; + &no.config; + </section> + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="shmop.resources"> + &reftitle.resources; + &no.resource; + </section> + <!-- }}} --> + +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/shmop/constants.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/shmop/constants.xml diff -u /dev/null phpdoc/en/reference/shmop/constants.xml:1.2 --- /dev/null Fri Dec 21 19:41:37 2007 +++ phpdoc/en/reference/shmop/constants.xml Fri Dec 21 19:41:37 2007 @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<appendix xml:id="shmop.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.constants; + &no.constants; +</appendix> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/shmop/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/shmop/examples.xml diff -u /dev/null phpdoc/en/reference/shmop/examples.xml:1.2 --- /dev/null Fri Dec 21 19:41:37 2007 +++ phpdoc/en/reference/shmop/examples.xml Fri Dec 21 19:41:37 2007 @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="shmop.examples" xmlns="http://docbook.org/ns/docbook"> + &reftitle.examples; + <section xml:id="shmop.examples-basic"> + <para> + <example> + <title>Shared Memory Operations Overview</title> + <programlisting role="php"> +<![CDATA[ +<?php + +// Create 100 byte shared memory block with system id of 0xff3 +$shm_id = shmop_open(0xff3, "c", 0644, 100); +if (!$shm_id) { + echo "Couldn't create shared memory segment\n"; +} + +// Get shared memory block's size +$shm_size = shmop_size($shm_id); +echo "SHM Block Size: " . $shm_size . " has been created.\n"; + +// Lets write a test string into shared memory +$shm_bytes_written = shmop_write($shm_id, "my shared memory block", 0); +if ($shm_bytes_written != strlen("my shared memory block")) { + echo "Couldn't write the entire length of data\n"; +} + +// Now lets read the string back +$my_string = shmop_read($shm_id, 0, $shm_size); +if (!$my_string) { + echo "Couldn't read from shared memory block\n"; +} +echo "The data inside shared memory was: " . $my_string . "\n"; + +//Now lets delete the block and close the shared memory segment +if (!shmop_delete($shm_id)) { + echo "Couldn't mark shared memory block for deletion."; +} +shmop_close($shm_id); + +?> +]]> + </programlisting> + </example> + </para> + </section> +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/shmop/reference.xml?r1=1.18&r2=1.19&diff_format=u Index: phpdoc/en/reference/shmop/reference.xml diff -u phpdoc/en/reference/shmop/reference.xml:1.18 phpdoc/en/reference/shmop/reference.xml:1.19 --- phpdoc/en/reference/shmop/reference.xml:1.18 Mon Dec 10 17:06:09 2007 +++ phpdoc/en/reference/shmop/reference.xml Fri Dec 21 19:41:37 2007 @@ -1,106 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.18 $ --> -<!-- Purpose: fileprocess.process --> -<!-- Membership: bundled --> - +<!-- $Revision: 1.19 $ --> <reference xml:id="ref.shmop" xmlns="http://docbook.org/ns/docbook"> - <title>Shared Memory Functions</title> - <titleabbrev>shmop</titleabbrev> - - <partintro> - <section xml:id="shmop.intro"> - &reftitle.intro; - <para> - Shmop is an easy to use set of functions that allows PHP to read, - write, create and delete Unix shared memory segments. - </para> - <note> - <simpara> - Versions of Windows previous to Windows 2000 do not support shared memory. - Under Windows, Shmop will only work when PHP is running as a web server - module, such as Apache or IIS (CLI and CGI will not work). - </simpara> - </note> - <note> - <simpara> - In PHP 4.0.3, these functions were prefixed by <literal>shm</literal> - rather than <literal>shmop</literal>. - </simpara> - </note> - </section> - - <section xml:id="shmop.requirements"> - &reftitle.required; - &no.requirement; - </section> - - &reference.shmop.configure; - - <section xml:id="shmop.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="shmop.resources"> - &reftitle.resources; - <para> - </para> - </section> - - <section xml:id="shmop.constants"> - &reftitle.constants; - &no.constants; - </section> - - <section xml:id="shmop.examples"> - &reftitle.examples; - <para> - <example> - <title>Shared Memory Operations Overview</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// Create 100 byte shared memory block with system id of 0xff3 -$shm_id = shmop_open(0xff3, "c", 0644, 100); -if (!$shm_id) { - echo "Couldn't create shared memory segment\n"; -} - -// Get shared memory block's size -$shm_size = shmop_size($shm_id); -echo "SHM Block Size: " . $shm_size . " has been created.\n"; - -// Lets write a test string into shared memory -$shm_bytes_written = shmop_write($shm_id, "my shared memory block", 0); -if ($shm_bytes_written != strlen("my shared memory block")) { - echo "Couldn't write the entire length of data\n"; -} - -// Now lets read the string back -$my_string = shmop_read($shm_id, 0, $shm_size); -if (!$my_string) { - echo "Couldn't read from shared memory block\n"; -} -echo "The data inside shared memory was: " . $my_string . "\n"; + <title>Shared Memory &Functions;</title> + <titleabbrev>shmop</titleabbrev> -//Now lets delete the block and close the shared memory segment -if (!shmop_delete($shm_id)) { - echo "Couldn't mark shared memory block for deletion."; -} -shmop_close($shm_id); - -?> -]]> - </programlisting> - </example> - </para> - </section> - </partintro> - -&reference.shmop.entities.functions; + &reference.shmop.entities.functions; - </reference> +</reference> <!-- Keep this comment at the end of the file Local variables: