cvs: phpdoc(REF_STRUCT_DEV) / manual.xml.in /en/reference/exec book.xml constants.xml reference.xml setup.xml /en/reference/expect book.xml
constants.xml examples.xml reference.xml setup.xml /en/reference/pcntl book.xml constants.xml examples.xml reference.xml setup.xml
/en/reference/posix book.xml constants.xml reference.xml setup.xml /en/reference/sem book.xml constants.xml reference.xml setup.xml
/en/reference/shmop book.xml constants.xml examples.xml reference.xml setup.xml

From: Date: Thu, 06 Dec 2007 23:13:21 +0000
Subject: cvs: phpdoc(REF_STRUCT_DEV) / manual.xml.in /en/reference/exec book.xml constants.xml reference.xml setup.xml /en/reference/expect book.xml
constants.xml examples.xml reference.xml setup.xml /en/reference/pcntl book.xml constants.xml examples.xml reference.xml setup.xml
/en/reference/posix book.xml constants.xml reference.xml setup.xml /en/reference/sem book.xml constants.xml reference.xml setup.xml
/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-541@lists.php.net to get a copy of this message
bjori Thu Dec 6 23:13:21 2007 UTC Added files: (Branch: REF_STRUCT_DEV) /phpdoc/en/reference/expect book.xml examples.xml setup.xml /phpdoc/en/reference/posix book.xml setup.xml /phpdoc/en/reference/pcntl book.xml examples.xml setup.xml /phpdoc/en/reference/exec book.xml constants.xml setup.xml /phpdoc/en/reference/sem book.xml setup.xml /phpdoc/en/reference/shmop book.xml constants.xml examples.xml setup.xml Modified files: /phpdoc manual.xml.in /phpdoc/en/reference/expect constants.xml reference.xml /phpdoc/en/reference/posix constants.xml reference.xml /phpdoc/en/reference/pcntl constants.xml reference.xml /phpdoc/en/reference/exec reference.xml /phpdoc/en/reference/sem constants.xml reference.xml /phpdoc/en/reference/shmop reference.xml Log: Upgrade refs.fileprocess.process to the new-ref-struct

http://cvs.php.net/viewvc.cgi/phpdoc/manual.xml.in?r1=1.224.2.26&r2=1.224.2.27&diff_format=u Index: phpdoc/manual.xml.in diff -u phpdoc/manual.xml.in:1.224.2.26 phpdoc/manual.xml.in:1.224.2.27 --- phpdoc/manual.xml.in:1.224.2.26 Sun Dec 2 19:58:58 2007 +++ phpdoc/manual.xml.in Thu Dec 6 23:13:19 2007 @@ -2,7 +2,7 @@ <!DOCTYPE set PUBLIC "-//OASIS//DTD DocBook XML V5.0//EN" "@srcdir@/docbook/docbook-xml/docbook.dtd" [ -<!-- $Revision: 1.224.2.26 $ --> <!-- Last updated to comply to manual.xml.in 1.189 --> +<!-- $Revision: 1.224.2.27 $ --> <!-- Last updated to comply to manual.xml.in 1.189 --> <!-- We use xhtml entities all over the place --> <!ENTITY % xhtml-lat1 SYSTEM "@srcdir@/entities/ISO/xhtml1-lat1.ent"> <!ENTITY % xhtml-symbol SYSTEM "@srcdir@/entities/ISO/xhtml1-symbol.ent"> @@ -310,15 +310,15 @@ &reference.xdiff.book; </set> - <book xml:id="refs.fileprocess.process"> + <set xml:id="refs.fileprocess.process"> <title>Process Control Extensions</title> - &reference.expect.reference; - &reference.posix.reference; - &reference.pcntl.reference; - &reference.exec.reference; - &reference.sem.reference; - &reference.shmop.reference; - </book> + &reference.expect.book; + &reference.posix.book; + &reference.pcntl.book; + &reference.exec.book; + &reference.sem.book; + &reference.shmop.book; + </set> <set xml:id="refs.remote.mail"> <title>Mail Related Extensions</title> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/expect/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/expect/constants.xml diff -u phpdoc/en/reference/expect/constants.xml:1.3 phpdoc/en/reference/expect/constants.xml:1.3.2.1 --- phpdoc/en/reference/expect/constants.xml:1.3 Wed Jun 20 22:24:26 2007 +++ phpdoc/en/reference/expect/constants.xml Thu Dec 6 23:13:19 2007 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.3 $ --> -<section xml:id="expect.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.1 $ --> +<appendix xml:id="expect.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -74,7 +74,7 @@ </listitem> </varlistentry> </variablelist> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/expect/reference.xml?r1=1.6.2.2&r2=1.6.2.3&diff_format=u Index: phpdoc/en/reference/expect/reference.xml diff -u phpdoc/en/reference/expect/reference.xml:1.6.2.2 phpdoc/en/reference/expect/reference.xml:1.6.2.3 --- phpdoc/en/reference/expect/reference.xml:1.6.2.2 Fri Nov 2 12:13:24 2007 +++ phpdoc/en/reference/expect/reference.xml Thu Dec 6 23:13:19 2007 @@ -1,162 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6.2.2 $ --> -<!-- Purpose: fileprocess.process --> -<!-- Membership: pecl --> +<!-- $Revision: 1.6.2.3 $ --> <reference xml:id="ref.expect" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Expect Functions</title> - <titleabbrev>Expect</titleabbrev> - - <partintro> - <section xml:id="expect.intro"> - &reftitle.intro; - <para> - This extension allows to interact with processes through PTY. You may - consider using the <link linkend="wrappers.expect"><literal>expect://</literal> - wrapper</link> with the <link linkend="ref.filesystem">filesystem - functions</link> which provide a simpler and more intuitive interface. - </para> - </section> - - <section xml:id="expect.requirements"> - &reftitle.required; - <para> - This module uses the functions of the <link - xlink:href="&url.expect;">expect</link> library. - You need libexpect version &gt;= 5.43.0. - </para> - </section> - - &reference.expect.configure; - - &reference.expect.ini; - - <section xml:id="expect.resources"> - &reftitle.resources; - <para> - <function>expect_popen</function> returns an open PTY stream used by - <function>expect_expectl</function>. - </para> - </section> - - &reference.expect.constants; - - <section xml:id="expect.examples"> - &reftitle.examples; - <para> - This example connects to the remote host via SSH, and prints the remote - uptime. - </para> - <example> - <title>Expect Usage Example</title> - <programlisting role="php"> -<![CDATA[ -<?php -ini_set ("expect.loguser", "Off"); - -$stream = fopen ("expect://ssh root@remotehost uptime", "r"); - -$cases = array ( - array (0 => "password:", 1 => PASSWORD) -); - -switch (expect_expectl ($stream, $cases)) { - case PASSWORD: - fwrite ($stream, "password\n"); - break; - - default: - die ("Error was occurred while connecting to the remote host!\n"); -} - -while ($line = fgets ($stream)) { - print $line; -} -fclose ($stream); -?> -]]> - </programlisting> - </example> - - <para> - The following example connects to the remote host, determines whether - installed OS is for 32 or 64 bit, then runs update for specific package. - </para> - <example> - <title>Another Expect Usage Example</title> - <programlisting role="php"> -<![CDATA[ -<?php -ini_set ("expect.timeout", -1); -ini_set ("expect.loguser", "Off"); - -$stream = expect_popen ("ssh root@remotehost"); - -while (true) { - switch (expect_expectl ($stream, array ( - array ("password:", PASSWORD), // SSH is asking for password - array ("yes/no)?", YESNO), // SSH is asking whether to store the host entry - array ("~$ ", SHELL, EXP_EXACT), // We've got the shell! - ))) { - case PASSWORD: - fwrite ($stream, "secret\n"); - break; - - case YESNO: - fwrite ($stream, "yes\n"); - break; - - case SHELL: - fwrite ($stream, "uname -a\n"); - while (true) { - switch (expect_expectl ($stream, array ( - array ("~$ ", SHELL, EXP_EXACT), // We've got the shell! - array ("^Linux.*$", UNAME, EXP_REGEXP), // uname -a output - ), $match)) { - case UNAME: - $uname .= $match[0]; - break; - - case SHELL: - // Run update: - if (strstr ($uname, "x86_64")) { - fwrite ($stream, "rpm -Uhv http://mirrorsite/somepath/some_64bit.rpm\n"); - } else { - fwrite ($stream, "rpm -Uhv http://mirrorsite/somepath/some_32bit.rpm\n"); - } - fwrite ($stream, "exit\n"); - break 2; - - case EXP_TIMEOUT: - case EXP_EOF: - break 2; - - default: - die ("Error has occurred!\n"); - } - } - break 2; - - case EXP_TIMEOUT: - case EXP_EOF: - break 2; - - default: - die ("Error has occurred!\n"); - } -} - -fclose ($stream); -?> -]]> - </programlisting> - </example> - </section> - </partintro> - + <title>Expect &Functions;</title> &reference.expect.functions.entities; </reference> + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -177,3 +27,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/posix/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/posix/constants.xml diff -u phpdoc/en/reference/posix/constants.xml:1.3 phpdoc/en/reference/posix/constants.xml:1.3.2.1 --- phpdoc/en/reference/posix/constants.xml:1.3 Wed Jun 20 22:25:15 2007 +++ phpdoc/en/reference/posix/constants.xml Thu Dec 6 23:13:19 2007 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.3 $ --> -<section xml:id="posix.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.1 $ --> +<appendix xml:id="posix.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -110,7 +110,7 @@ of them may not be available in your system. </para> </note> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/posix/reference.xml?r1=1.9.2.1&r2=1.9.2.2&diff_format=u Index: phpdoc/en/reference/posix/reference.xml diff -u phpdoc/en/reference/posix/reference.xml:1.9.2.1 phpdoc/en/reference/posix/reference.xml:1.9.2.2 --- phpdoc/en/reference/posix/reference.xml:1.9.2.1 Wed Oct 3 11:41:14 2007 +++ phpdoc/en/reference/posix/reference.xml Thu Dec 6 23:13:19 2007 @@ -1,51 +1,16 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9.2.1 $ --> -<!-- Purpose: fileprocess.process --> -<!-- Membership: bundled --> +<!-- $Revision: 1.9.2.2 $ --> <reference xml:id="ref.posix" xmlns="http://docbook.org/ns/docbook"> - <title>POSIX Functions</title> - <titleabbrev>POSIX</titleabbrev> + <title>POSIX &Functions;</title> - <partintro> - <section xml:id="posix.intro"> - &reftitle.intro; - <para> - This module contains an interface to those functions defined in - the IEEE 1003.1 (POSIX.1) standards document which are not - accessible through other means. POSIX.1 for example defined the - open(), read(), write() and close() functions, too, which - traditionally have been part of PHP 3 for a long time. Some more - system specific functions have not been available before, though, - and this module tries to remedy this by providing easy access to - these functions. - </para> - <warning> - <para> - Sensitive data can be retrieved with the POSIX functions, e.g. - <function>posix_getpwnam</function> and friends. None of the - POSIX function perform any kind of access - checking when <link linkend="ini.safe-mode">safe mode</link> is enabled. - It's therefore <emphasis role="strong">strongly</emphasis> advised to - disable the POSIX extension at all (use - <literal>--disable-posix</literal> in your configure line) if you're - operating in such an environment. - </para> - </warning> - &note.no-windows.extension; - </section> - - &reference.posix.configure; - &reference.posix.constants; - - <section xml:id="posix.seealso"> + <partintro xml:id="posix.seealso"> &reftitle.seealso; <para> The section about <link linkend="ref.pcntl">Process Control Functions</link> maybe of interest for you. </para> - </section> </partintro> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/pcntl/constants.xml?r1=1.4&r2=1.4.2.1&diff_format=u Index: phpdoc/en/reference/pcntl/constants.xml diff -u phpdoc/en/reference/pcntl/constants.xml:1.4 phpdoc/en/reference/pcntl/constants.xml:1.4.2.1 --- phpdoc/en/reference/pcntl/constants.xml:1.4 Wed Jun 20 22:25:10 2007 +++ phpdoc/en/reference/pcntl/constants.xml Thu Dec 6 23:13:19 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<section xml:id="pcntl.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.4.2.1 $ --> +<appendix xml:id="pcntl.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; <para> The following list of signals are supported by the Process Control @@ -449,7 +449,7 @@ </listitem> </varlistentry> </variablelist> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/pcntl/reference.xml?r1=1.14.2.1&r2=1.14.2.2&diff_format=u Index: phpdoc/en/reference/pcntl/reference.xml diff -u phpdoc/en/reference/pcntl/reference.xml:1.14.2.1 phpdoc/en/reference/pcntl/reference.xml:1.14.2.2 --- phpdoc/en/reference/pcntl/reference.xml:1.14.2.1 Wed Oct 3 11:41:13 2007 +++ phpdoc/en/reference/pcntl/reference.xml Thu Dec 6 23:13:19 2007 @@ -1,138 +1,16 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14.2.1 $ --> -<!-- Purpose: fileprocess.process --> -<!-- Membership: bundled --> +<!-- $Revision: 1.14.2.2 $ --> <reference xml:id="ref.pcntl" xmlns="http://docbook.org/ns/docbook"> <title>Process Control Functions</title> - <titleabbrev>PCNTL</titleabbrev> - <partintro> - <section xml:id="pcntl.intro"> - &reftitle.intro; - <para> - Process Control support in PHP implements the Unix style of - process creation, program execution, signal handling and process - termination. Process Control should not be enabled within a - web server environment and unexpected results may happen if any - Process Control functions are used within a web server environment. - </para> - <para> - This documentation is intended to explain the general usage of - each of the Process Control functions. For detailed information - about Unix process control you are encouraged to consult your - systems documentation including fork(2), waitpid(2) and signal(2) - or a comprehensive reference such as Advanced Programming in the - UNIX Environment by W. Richard Stevens (Addison-Wesley). - </para> - <para> - PCNTL now uses ticks as the signal handle callback mechanism, which is - much faster than the previous mechanism. This change follows the same - semantics as using "user ticks". You use the <function>declare</function> - statement to specify the locations in your program where callbacks are - allowed to occur. This allows you to minimize the overhead of handling - asynchronous events. In the past, compiling PHP with pcntl enabled would - always incur this overhead, whether or not your script actually used - pcntl. - </para> - <para> - There is one adjustment that all pcntl scripts prior to PHP 4.3.0 must - make for them to work which is to either to use - <function>declare</function> on a section where you wish to allow - callbacks or to just enable it across the entire script using - the new global syntax of <function>declare</function>. - </para> - - &note.no-windows.extension; - </section> - - <section xml:id="pcntl.requirements"> - &reftitle.required; - &no.requirement; - </section> - - &reference.pcntl.configure; - - <section xml:id="pcntl.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="pcntl.resources"> - &reftitle.resources; - &no.resource; - </section> - - &reference.pcntl.constants; - - <section xml:id="pcntl.example"> - &reftitle.examples; - <para> - This example forks off a daemon process with a signal handler. - </para> - <example> - <title>Process Control Example</title> - <programlisting role="php"> -<![CDATA[ -<?php -declare(ticks=1); - -$pid = pcntl_fork(); -if ($pid == -1) { - die("could not fork"); -} else if ($pid) { - exit(); // we are the parent -} else { - // we are the child -} - -// detatch from the controlling terminal -if (posix_setsid() == -1) { - die("could not detach from terminal"); -} - -// setup signal handlers -pcntl_signal(SIGTERM, "sig_handler"); -pcntl_signal(SIGHUP, "sig_handler"); - -// loop forever performing tasks -while (1) { - - // do something interesting here - -} - -function sig_handler($signo) -{ - - switch ($signo) { - case SIGTERM: - // handle shutdown tasks - exit; - break; - case SIGHUP: - // handle restart tasks - break; - default: - // handle all other signals - } - -} - -?> -]]> - </programlisting> - </example> - </section> - - <section xml:id="pcntl.seealso"> + <partintro xml:id="pcntl.seealso"> &reftitle.seealso; <para> A look at the section about <link linkend="ref.posix">POSIX functions</link> may be useful. </para> - </section> </partintro> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/exec/reference.xml?r1=1.14.2.1&r2=1.14.2.2&diff_format=u Index: phpdoc/en/reference/exec/reference.xml diff -u phpdoc/en/reference/exec/reference.xml:1.14.2.1 phpdoc/en/reference/exec/reference.xml:1.14.2.2 --- phpdoc/en/reference/exec/reference.xml:1.14.2.1 Wed Oct 3 11:41:09 2007 +++ phpdoc/en/reference/exec/reference.xml Thu Dec 6 23:13:20 2007 @@ -1,48 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14.2.1 $ --> -<!-- Purpose: fileprocess.process --> -<!-- Membership: core --> +<!-- $Revision: 1.14.2.2 $ --> <reference xml:id="ref.exec" xmlns="http://docbook.org/ns/docbook"> - <title>Program Execution Functions</title> - <titleabbrev>Program Execution</titleabbrev> + <title>Program Execution &Functions;</title> <partintro> - <section xml:id="exec.intro"> - &reftitle.intro; - <simpara> - Those functions provide means to execute commands on the - system itself, and means to secure such commands. - </simpara> - </section> - - <section xml:id="exec.requirements"> - &reftitle.required; - &no.requirement; - </section> - - <section xml:id="exec.installation"> - &reftitle.install; - &no.install; - </section> - - <section xml:id="exec.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="exec.resources"> - &reftitle.resources; - <para> - This extension defines a <literal>process</literal> resource, returned by - <function>proc_open</function>. - </para> - </section> - - <section xml:id="exec.constants"> - &reftitle.constants; - &no.constants; - </section> <section xml:id="exec.notes"> &reftitle.notes; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sem/constants.xml?r1=1.3&r2=1.3.2.1&diff_format=u Index: phpdoc/en/reference/sem/constants.xml diff -u phpdoc/en/reference/sem/constants.xml:1.3 phpdoc/en/reference/sem/constants.xml:1.3.2.1 --- phpdoc/en/reference/sem/constants.xml:1.3 Wed Jun 20 22:25:22 2007 +++ phpdoc/en/reference/sem/constants.xml Thu Dec 6 23:13:20 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<section xml:id="sem.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.3.2.1 $ --> +<appendix xml:id="sem.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <para> @@ -44,7 +44,7 @@ </tgroup> </table> </para> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sem/reference.xml?r1=1.16.2.1&r2=1.16.2.2&diff_format=u Index: phpdoc/en/reference/sem/reference.xml diff -u phpdoc/en/reference/sem/reference.xml:1.16.2.1 phpdoc/en/reference/sem/reference.xml:1.16.2.2 --- phpdoc/en/reference/sem/reference.xml:1.16.2.1 Wed Oct 3 11:41:15 2007 +++ phpdoc/en/reference/sem/reference.xml Thu Dec 6 23:13:20 2007 @@ -1,87 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16.2.1 $ --> -<!-- Purpose: fileprocess.process --> -<!-- Membership: bundled --> +<!-- $Revision: 1.16.2.2 $ --> <reference xml:id="ref.sem" xmlns="http://docbook.org/ns/docbook"> <title>Semaphore, Shared Memory and IPC Functions</title> - <titleabbrev>Semaphore</titleabbrev> - - <partintro> - <section xml:id="sem.intro"> - &reftitle.intro; - <para> - This module provides wrappers for the System V IPC family of functions. - It includes semaphores, shared memory and inter-process messaging (IPC). - </para> - <para> - Semaphores may be used to provide exclusive access to - resources on the current machine, or to limit the number of - processes that may simultaneously use a resource. - </para> - <para> - This module provides also shared memory functions using System V - shared memory. Shared memory may be used to provide access to - global variables. Different httpd-daemons and even other programs - (such as Perl, C, ...) are able to access this data to provide a - global data-exchange. Remember, that shared memory is NOT safe - against simultaneous access. Use semaphores for synchronization. - <table> - <title>Limits of Shared Memory by the Unix OS</title> - <tgroup cols="2"> - <tbody> - <row> - <entry>SHMMAX</entry> - <entry>max size of shared memory, normally 131072 bytes</entry> - </row> - <row> - <entry>SHMMIN</entry> - <entry>minimum size of shared memory, normally 1 byte</entry> - </row> - <row> - <entry>SHMMNI</entry> - <entry> - max amount of shared memory segments on a system, - normally 100 - </entry> - </row> - <row> - <entry>SHMSEG</entry> - <entry> - max amount of shared memory segments per process, normally 6 - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - <para> - The messaging functions may be used to send and receive messages to/from - other processes. They provide a simple and effective means of exchanging - data between processes, without the need for setting up an alternative - using Unix domain sockets. - </para> - &note.no-windows.extension; - </section> - - <section xml:id="sem.requirements"> - &reftitle.required; - &no.requirement; - </section> - - &reference.sem.configure; - &reference.sem.ini; - - <section xml:id="sem.resources"> - &reftitle.resources; - <para> - - </para> - </section> - - &reference.sem.constants; - - </partintro> &reference.sem.functions.entities; http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/shmop/reference.xml?r1=1.17.2.1&r2=1.17.2.2&diff_format=u Index: phpdoc/en/reference/shmop/reference.xml diff -u phpdoc/en/reference/shmop/reference.xml:1.17.2.1 phpdoc/en/reference/shmop/reference.xml:1.17.2.2 --- phpdoc/en/reference/shmop/reference.xml:1.17.2.1 Wed Oct 3 11:41:15 2007 +++ phpdoc/en/reference/shmop/reference.xml Thu Dec 6 23:13:20 2007 @@ -1,103 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17.2.1 $ --> -<!-- Purpose: fileprocess.process --> -<!-- Membership: bundled --> +<!-- $Revision: 1.17.2.2 $ --> <reference xml:id="ref.shmop" xmlns="http://docbook.org/ns/docbook"> - <title>Shared Memory Functions</title> - <titleabbrev>shmop</titleabbrev> + <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"; - -//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.functions.entities; </reference> @@ -122,3 +29,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/expect/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/expect/book.xml +++ phpdoc/en/reference/expect/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/expect/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/expect/examples.xml +++ phpdoc/en/reference/expect/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/expect/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/expect/setup.xml +++ phpdoc/en/reference/expect/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/posix/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/posix/book.xml +++ phpdoc/en/reference/posix/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/posix/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/posix/setup.xml +++ phpdoc/en/reference/posix/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/pcntl/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/pcntl/book.xml +++ phpdoc/en/reference/pcntl/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/pcntl/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/pcntl/examples.xml +++ phpdoc/en/reference/pcntl/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/pcntl/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/pcntl/setup.xml +++ phpdoc/en/reference/pcntl/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/exec/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/exec/book.xml +++ phpdoc/en/reference/exec/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/exec/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/exec/constants.xml +++ phpdoc/en/reference/exec/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/exec/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/exec/setup.xml +++ phpdoc/en/reference/exec/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sem/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/sem/book.xml +++ phpdoc/en/reference/sem/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sem/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/sem/setup.xml +++ phpdoc/en/reference/sem/setup.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/shmop/book.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/shmop/book.xml +++ phpdoc/en/reference/shmop/book.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/shmop/constants.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/shmop/constants.xml +++ phpdoc/en/reference/shmop/constants.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/shmop/examples.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/shmop/examples.xml +++ phpdoc/en/reference/shmop/examples.xml http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/shmop/setup.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/shmop/setup.xml +++ phpdoc/en/reference/shmop/setup.xml
« previous php.doc.cvs (#541) next »