cvs: phpdoc-fr /reference/shmop reference.xml /reference/shmop/functions shmop-close.xml shmop-delete.xml shmop-open.xml shmop-read.xml
shmop-size.xml shmop-write.xml
| From: | Damien Seguy | Date: | Wed, 09 Jul 2003 11:30:43 +0000 |
| Subject: | cvs: phpdoc-fr /reference/shmop reference.xml /reference/shmop/functions shmop-close.xml shmop-delete.xml shmop-open.xml shmop-read.xml shmop-size.xml shmop-write.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-607@lists.php.net to get a copy of this message | ||
dams Wed Jul 9 07:30:43 2003 EDT
Modified files:
/phpdoc-fr/reference/shmop reference.xml
/phpdoc-fr/reference/shmop/functions shmop-close.xml
shmop-delete.xml
shmop-open.xml shmop-read.xml
shmop-size.xml shmop-write.xml
Log:
keeping up with en tree
Index: phpdoc-fr/reference/shmop/reference.xml diff -u phpdoc-fr/reference/shmop/reference.xml:1.2 phpdoc-fr/reference/shmop/reference.xml:1.3 --- phpdoc-fr/reference/shmop/reference.xml:1.2 Mon Apr 15 20:55:05 2002 +++ phpdoc-fr/reference/shmop/reference.xml Wed Jul 9 07:30:43 2003 @@ -1,60 +1,96 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <reference id="ref.shmop"> <title>Mémoire partagée</title> <titleabbrev>shmop</titleabbrev> - <partintro> - <para> + <partintro> + <section id="shmop.intro"> + &reftitle.intro; + <para> Shmop est un ensemble de fonctions simples pour gérer - la mémoire partagée avec PHP (lecture, + la mémoire partagée avec &php; (lecture, écriture, création et suppressions de segments de mémoire paragée UNIX). Ces fonctions ne fonctionnent pas sous Windows, car ce système d'exploitation ne supporte pas - la mémoire partagée. Pour utiliser les fonctions - shmop, compilez PHP avec l'option --enable-shmop parameter. - </para> - <note> - <simpara> - Toutes les fonctions décrites ci-dessous commencent par - <literal>shm_</literal> poru les versions jusqu'à PHP 4.0.3, - mais en PHP 4.0.4 et plus récent, elles sont préfixées - par <literal>shmop_</literal>. - </simpara> - </note> - <para> - <example> + la mémoire partagée. Toutes fois, depuis Windows 2000, + en activant la librairie php_shmop.dll dans votre fichier &php.ini; + vous activerez aussi cette fonctionnalité. + </para> + <note> + <simpara> + En PHP 4.0.3, ces fonctions étaient préfixées avec <literal>shm</literal> + au lieu de <literal>shmop</literal>. + </simpara> + </note> + </section> + + <section id="shmop.requirements"> + &reftitle.required; + &no.requirement; + </section> + +&reference.shmop.configure; + + <section id="shmop.configuration"> + &reftitle.runtime; + &no.config; + </section> + + <section id="shmop.resources"> + &reftitle.resources; + <para> + </para> + </section> + + <section id="shmop.constants"> + &reftitle.constants; + &no.constants; + </section> + <section id="shmop.examples"> + &reftitle.examples; + <para> + <example> <title>Introduction à la mémoire partagée</title> - <programlisting role="php"> -<?php + <programlisting role="php"> +<![CDATA[ +<?php + // Crée 100 octets de mémoire partagée avec // un identifiant système "0xff3" $shm_id = shmop_open(0xff3, "c", 0644, 100); if(!$shm_id) { echo "Impossible de créer la mémoire partagée\n"; } + // Lire la taille de la mémoire partagée $shm_size = shmop_size($shm_id); echo "Un bloc de SHM de taille ".$shm_size. " a été créé.\n"; + // Ecriture d'une chaîne de test dans ce segment -$shm_bytes_written = shmop_write($shm_id, "mon bloc de mémoire partagée", 0); -if($shm_bytes_written != strlen("mon bloc de mémoire partagée")) { +$shm_bytes_written = shmop_write($shm_id, "my shared memory block", 0); +if($shm_bytes_written != strlen("Mon bloc de mémoire partagée")) { echo "Impossible d'écrire toutes les données en mémoire\n"; } + // Lecture du segment $my_string = shmop_read($shm_id, 0, $shm_size); if(!$my_string) { echo "Impossible de lire toutes les données en mémoire\n"; } echo "Les données mis en mémoire partagées sont : ".$my_string."\n"; + //Maintenant, effacons le bloc, et fermons le segment de mémoire if(!shmop_delete($shm_id)) { echo "Impossible d'effacer le segment de mémoire"; } shmop_close($shm_id); -?> - </programlisting> - </example> - </para> + +?> +]]> + </programlisting> + </example> + </para> + </section> </partintro> &reference.shmop.functions; Index: phpdoc-fr/reference/shmop/functions/shmop-close.xml diff -u phpdoc-fr/reference/shmop/functions/shmop-close.xml:1.1 phpdoc-fr/reference/shmop/functions/shmop-close.xml:1.2 --- phpdoc-fr/reference/shmop/functions/shmop-close.xml:1.1 Sun Apr 14 20:38:21 2002 +++ phpdoc-fr/reference/shmop/functions/shmop-close.xml Wed Jul 9 07:30:43 2003 @@ -10,7 +10,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>shmop_close</methodname> - <methodparam><type>resource</type><parameter>shmid</parameter></methodparam> + <methodparam><type>int</type><parameter>shmid</parameter></methodparam> </methodsynopsis> <para> <function>shmop_close</function> sert à fermer un bloc de @@ -25,9 +25,11 @@ <example> <title>Fermeture d'un bloc de mémoire partagée</title> <programlisting role="php"> -<?php -shmop_close($shm_id); -?> +<![CDATA[ +<?php + shmop_close($shm_id); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/shmop/functions/shmop-delete.xml diff -u phpdoc-fr/reference/shmop/functions/shmop-delete.xml:1.1 phpdoc-fr/reference/shmop/functions/shmop-delete.xml:1.2 --- phpdoc-fr/reference/shmop/functions/shmop-delete.xml:1.1 Sun Apr 14 20:38:21 2002 +++ phpdoc-fr/reference/shmop/functions/shmop-delete.xml Wed Jul 9 07:30:43 2003 @@ -12,7 +12,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>shmop_delete</methodname> - <methodparam><type>resource</type><parameter>shmid</parameter></methodparam> + <methodparam><type>int</type><parameter>shmid</parameter></methodparam> </methodsynopsis> <para> <function>shmop_delete</function> sert à détruire un @@ -28,9 +28,11 @@ <example> <title>Effacement d'un bloc de mémoire partagée</title> <programlisting role="php"> -<?php -shmop_delete($shm_id); -?> +<![CDATA[ +<?php + shmop_delete($shm_id); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/shmop/functions/shmop-open.xml diff -u phpdoc-fr/reference/shmop/functions/shmop-open.xml:1.1 phpdoc-fr/reference/shmop/functions/shmop-open.xml:1.2 --- phpdoc-fr/reference/shmop/functions/shmop-open.xml:1.1 Sun Apr 14 20:38:21 2002 +++ phpdoc-fr/reference/shmop/functions/shmop-open.xml Wed Jul 9 07:30:43 2003 @@ -11,7 +11,7 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>resource</type><methodname>shmop_open</methodname> + <type>int</type><methodname>shmop_open</methodname> <methodparam><type>int</type><parameter>key</parameter></methodparam> <methodparam><type>string</type><parameter>flags</parameter></methodparam> <methodparam><type>int</type><parameter>mode</parameter></methodparam> @@ -40,6 +40,21 @@ utilisez cette option pour créer un nouveau bloc. </simpara> </listitem> + <listitem> + <simpara> + "w" pour accès en lecture et écriture. Utilisez cette option lorsque vous + devez accéder en lecture et écriture à un segment de mémoire partagée. + C'est le cas le plus courant. + </simpara> + </listitem> + <listitem> + <simpara> + "n" crée un nouveau segment de mémoire partagée (utilise IPC_CREATE|IPC_EXCL) + Utilisez cette option lorsque vous voulez créer un nouveau segment de mémoire partagée + sauf s'il en éxiste déjà un avec la même option. Ceci est très pratique pour des raisons + de sécurité, pour éviter des trous de sécurités qui exploiterait la course aux ressources. + </simpara> + </listitem> </itemizedlist> Le troisième paramètre est le mode, c'est à dire les permissions que vous donnez à ce bloc. Ce sont @@ -61,9 +76,11 @@ <example> <title>Créer un nouveau bloc</title> <programlisting role="php"> -<?php -$shm_id = shmop_open(0x0fff, "c", 0644, 100); -?> +<![CDATA[ +<?php + $shm_id = shmop_open(0x0fff, "c", 0644, 100); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/shmop/functions/shmop-read.xml diff -u phpdoc-fr/reference/shmop/functions/shmop-read.xml:1.1 phpdoc-fr/reference/shmop/functions/shmop-read.xml:1.2 --- phpdoc-fr/reference/shmop/functions/shmop-read.xml:1.1 Sun Apr 14 20:38:21 2002 +++ phpdoc-fr/reference/shmop/functions/shmop-read.xml Wed Jul 9 07:30:43 2003 @@ -10,7 +10,7 @@ <title>Description</title> <methodsynopsis> <type>string</type><methodname>shmop_read</methodname> - <methodparam><type>resource</type><parameter>shmid</parameter></methodparam> + <methodparam><type>int</type><parameter>shmid</parameter></methodparam> <methodparam><type>int</type><parameter>start</parameter></methodparam> <methodparam><type>int</type><parameter>count</parameter></methodparam> </methodsynopsis> @@ -31,9 +31,11 @@ <example> <title>Lire un bloc de mémoire partagée</title> <programlisting role="php"> -<?php -$shm_data = shmop_read($shm_id, 0, 50); -?> +<![CDATA[ +<?php + $shm_data = shmop_read($shm_id, 0, 50); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/shmop/functions/shmop-size.xml diff -u phpdoc-fr/reference/shmop/functions/shmop-size.xml:1.1 phpdoc-fr/reference/shmop/functions/shmop-size.xml:1.2 --- phpdoc-fr/reference/shmop/functions/shmop-size.xml:1.1 Sun Apr 14 20:38:21 2002 +++ phpdoc-fr/reference/shmop/functions/shmop-size.xml Wed Jul 9 07:30:43 2003 @@ -12,7 +12,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>shmop_size</methodname> - <methodparam><type>resource</type><parameter>shmid</parameter></methodparam> + <methodparam><type>int</type><parameter>shmid</parameter></methodparam> </methodsynopsis> <para> <function>shmop_size</function> sert à connaître @@ -28,9 +28,11 @@ <example> <title>Lire la taille d'un bloc de mémoire partagée</title> <programlisting role="php"> -<?php -$shm_size = shmop_size($shm_id); -?> +<![CDATA[ +<?php + $shm_size = shmop_size($shm_id); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/shmop/functions/shmop-write.xml diff -u phpdoc-fr/reference/shmop/functions/shmop-write.xml:1.1 phpdoc-fr/reference/shmop/functions/shmop-write.xml:1.2 --- phpdoc-fr/reference/shmop/functions/shmop-write.xml:1.1 Sun Apr 14 20:38:21 2002 +++ phpdoc-fr/reference/shmop/functions/shmop-write.xml Wed Jul 9 07:30:43 2003 @@ -12,7 +12,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>shmop_write</methodname> - <methodparam><type>resource</type><parameter>shmid</parameter></methodparam> + <methodparam><type>int</type><parameter>shmid</parameter></methodparam> <methodparam><type>string</type><parameter>data</parameter></methodparam> <methodparam><type>int</type><parameter>offset</parameter></methodparam> </methodsynopsis> @@ -34,9 +34,11 @@ <example> <title>Ecrire un bloc de mémoire partagée</title> <programlisting role="php"> -<?php -$shm_bytes_written = shmop_write($shm_id, $my_string, 0); -?> +<![CDATA[ +<?php + $shm_bytes_written = shmop_write($shm_id, $my_string, 0); +?> +]]> </programlisting> </example> </para>
Index: phpdoc-fr/reference/shmop/reference.xml diff -u phpdoc-fr/reference/shmop/reference.xml:1.2 phpdoc-fr/reference/shmop/reference.xml:1.3 --- phpdoc-fr/reference/shmop/reference.xml:1.2 Mon Apr 15 20:55:05 2002 +++ phpdoc-fr/reference/shmop/reference.xml Wed Jul 9 07:30:43 2003 @@ -1,60 +1,96 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <reference id="ref.shmop"> <title>Mémoire partagée</title> <titleabbrev>shmop</titleabbrev> - <partintro> - <para> + <partintro> + <section id="shmop.intro"> + &reftitle.intro; + <para> Shmop est un ensemble de fonctions simples pour gérer - la mémoire partagée avec PHP (lecture, + la mémoire partagée avec &php; (lecture, écriture, création et suppressions de segments de mémoire paragée UNIX). Ces fonctions ne fonctionnent pas sous Windows, car ce système d'exploitation ne supporte pas - la mémoire partagée. Pour utiliser les fonctions - shmop, compilez PHP avec l'option --enable-shmop parameter. - </para> - <note> - <simpara> - Toutes les fonctions décrites ci-dessous commencent par - <literal>shm_</literal> poru les versions jusqu'à PHP 4.0.3, - mais en PHP 4.0.4 et plus récent, elles sont préfixées - par <literal>shmop_</literal>. - </simpara> - </note> - <para> - <example> + la mémoire partagée. Toutes fois, depuis Windows 2000, + en activant la librairie php_shmop.dll dans votre fichier &php.ini; + vous activerez aussi cette fonctionnalité. + </para> + <note> + <simpara> + En PHP 4.0.3, ces fonctions étaient préfixées avec <literal>shm</literal> + au lieu de <literal>shmop</literal>. + </simpara> + </note> + </section> + + <section id="shmop.requirements"> + &reftitle.required; + &no.requirement; + </section> + +&reference.shmop.configure; + + <section id="shmop.configuration"> + &reftitle.runtime; + &no.config; + </section> + + <section id="shmop.resources"> + &reftitle.resources; + <para> + </para> + </section> + + <section id="shmop.constants"> + &reftitle.constants; + &no.constants; + </section> + <section id="shmop.examples"> + &reftitle.examples; + <para> + <example> <title>Introduction à la mémoire partagée</title> - <programlisting role="php"> -<?php + <programlisting role="php"> +<![CDATA[ +<?php + // Crée 100 octets de mémoire partagée avec // un identifiant système "0xff3" $shm_id = shmop_open(0xff3, "c", 0644, 100); if(!$shm_id) { echo "Impossible de créer la mémoire partagée\n"; } + // Lire la taille de la mémoire partagée $shm_size = shmop_size($shm_id); echo "Un bloc de SHM de taille ".$shm_size. " a été créé.\n"; + // Ecriture d'une chaîne de test dans ce segment -$shm_bytes_written = shmop_write($shm_id, "mon bloc de mémoire partagée", 0); -if($shm_bytes_written != strlen("mon bloc de mémoire partagée")) { +$shm_bytes_written = shmop_write($shm_id, "my shared memory block", 0); +if($shm_bytes_written != strlen("Mon bloc de mémoire partagée")) { echo "Impossible d'écrire toutes les données en mémoire\n"; } + // Lecture du segment $my_string = shmop_read($shm_id, 0, $shm_size); if(!$my_string) { echo "Impossible de lire toutes les données en mémoire\n"; } echo "Les données mis en mémoire partagées sont : ".$my_string."\n"; + //Maintenant, effacons le bloc, et fermons le segment de mémoire if(!shmop_delete($shm_id)) { echo "Impossible d'effacer le segment de mémoire"; } shmop_close($shm_id); -?> - </programlisting> - </example> - </para> + +?> +]]> + </programlisting> + </example> + </para> + </section> </partintro> &reference.shmop.functions; Index: phpdoc-fr/reference/shmop/functions/shmop-close.xml diff -u phpdoc-fr/reference/shmop/functions/shmop-close.xml:1.1 phpdoc-fr/reference/shmop/functions/shmop-close.xml:1.2 --- phpdoc-fr/reference/shmop/functions/shmop-close.xml:1.1 Sun Apr 14 20:38:21 2002 +++ phpdoc-fr/reference/shmop/functions/shmop-close.xml Wed Jul 9 07:30:43 2003 @@ -10,7 +10,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>shmop_close</methodname> - <methodparam><type>resource</type><parameter>shmid</parameter></methodparam> + <methodparam><type>int</type><parameter>shmid</parameter></methodparam> </methodsynopsis> <para> <function>shmop_close</function> sert à fermer un bloc de @@ -25,9 +25,11 @@ <example> <title>Fermeture d'un bloc de mémoire partagée</title> <programlisting role="php"> -<?php -shmop_close($shm_id); -?> +<![CDATA[ +<?php + shmop_close($shm_id); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/shmop/functions/shmop-delete.xml diff -u phpdoc-fr/reference/shmop/functions/shmop-delete.xml:1.1 phpdoc-fr/reference/shmop/functions/shmop-delete.xml:1.2 --- phpdoc-fr/reference/shmop/functions/shmop-delete.xml:1.1 Sun Apr 14 20:38:21 2002 +++ phpdoc-fr/reference/shmop/functions/shmop-delete.xml Wed Jul 9 07:30:43 2003 @@ -12,7 +12,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>shmop_delete</methodname> - <methodparam><type>resource</type><parameter>shmid</parameter></methodparam> + <methodparam><type>int</type><parameter>shmid</parameter></methodparam> </methodsynopsis> <para> <function>shmop_delete</function> sert à détruire un @@ -28,9 +28,11 @@ <example> <title>Effacement d'un bloc de mémoire partagée</title> <programlisting role="php"> -<?php -shmop_delete($shm_id); -?> +<![CDATA[ +<?php + shmop_delete($shm_id); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/shmop/functions/shmop-open.xml diff -u phpdoc-fr/reference/shmop/functions/shmop-open.xml:1.1 phpdoc-fr/reference/shmop/functions/shmop-open.xml:1.2 --- phpdoc-fr/reference/shmop/functions/shmop-open.xml:1.1 Sun Apr 14 20:38:21 2002 +++ phpdoc-fr/reference/shmop/functions/shmop-open.xml Wed Jul 9 07:30:43 2003 @@ -11,7 +11,7 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>resource</type><methodname>shmop_open</methodname> + <type>int</type><methodname>shmop_open</methodname> <methodparam><type>int</type><parameter>key</parameter></methodparam> <methodparam><type>string</type><parameter>flags</parameter></methodparam> <methodparam><type>int</type><parameter>mode</parameter></methodparam> @@ -40,6 +40,21 @@ utilisez cette option pour créer un nouveau bloc. </simpara> </listitem> + <listitem> + <simpara> + "w" pour accès en lecture et écriture. Utilisez cette option lorsque vous + devez accéder en lecture et écriture à un segment de mémoire partagée. + C'est le cas le plus courant. + </simpara> + </listitem> + <listitem> + <simpara> + "n" crée un nouveau segment de mémoire partagée (utilise IPC_CREATE|IPC_EXCL) + Utilisez cette option lorsque vous voulez créer un nouveau segment de mémoire partagée + sauf s'il en éxiste déjà un avec la même option. Ceci est très pratique pour des raisons + de sécurité, pour éviter des trous de sécurités qui exploiterait la course aux ressources. + </simpara> + </listitem> </itemizedlist> Le troisième paramètre est le mode, c'est à dire les permissions que vous donnez à ce bloc. Ce sont @@ -61,9 +76,11 @@ <example> <title>Créer un nouveau bloc</title> <programlisting role="php"> -<?php -$shm_id = shmop_open(0x0fff, "c", 0644, 100); -?> +<![CDATA[ +<?php + $shm_id = shmop_open(0x0fff, "c", 0644, 100); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/shmop/functions/shmop-read.xml diff -u phpdoc-fr/reference/shmop/functions/shmop-read.xml:1.1 phpdoc-fr/reference/shmop/functions/shmop-read.xml:1.2 --- phpdoc-fr/reference/shmop/functions/shmop-read.xml:1.1 Sun Apr 14 20:38:21 2002 +++ phpdoc-fr/reference/shmop/functions/shmop-read.xml Wed Jul 9 07:30:43 2003 @@ -10,7 +10,7 @@ <title>Description</title> <methodsynopsis> <type>string</type><methodname>shmop_read</methodname> - <methodparam><type>resource</type><parameter>shmid</parameter></methodparam> + <methodparam><type>int</type><parameter>shmid</parameter></methodparam> <methodparam><type>int</type><parameter>start</parameter></methodparam> <methodparam><type>int</type><parameter>count</parameter></methodparam> </methodsynopsis> @@ -31,9 +31,11 @@ <example> <title>Lire un bloc de mémoire partagée</title> <programlisting role="php"> -<?php -$shm_data = shmop_read($shm_id, 0, 50); -?> +<![CDATA[ +<?php + $shm_data = shmop_read($shm_id, 0, 50); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/shmop/functions/shmop-size.xml diff -u phpdoc-fr/reference/shmop/functions/shmop-size.xml:1.1 phpdoc-fr/reference/shmop/functions/shmop-size.xml:1.2 --- phpdoc-fr/reference/shmop/functions/shmop-size.xml:1.1 Sun Apr 14 20:38:21 2002 +++ phpdoc-fr/reference/shmop/functions/shmop-size.xml Wed Jul 9 07:30:43 2003 @@ -12,7 +12,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>shmop_size</methodname> - <methodparam><type>resource</type><parameter>shmid</parameter></methodparam> + <methodparam><type>int</type><parameter>shmid</parameter></methodparam> </methodsynopsis> <para> <function>shmop_size</function> sert à connaître @@ -28,9 +28,11 @@ <example> <title>Lire la taille d'un bloc de mémoire partagée</title> <programlisting role="php"> -<?php -$shm_size = shmop_size($shm_id); -?> +<![CDATA[ +<?php + $shm_size = shmop_size($shm_id); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/shmop/functions/shmop-write.xml diff -u phpdoc-fr/reference/shmop/functions/shmop-write.xml:1.1 phpdoc-fr/reference/shmop/functions/shmop-write.xml:1.2 --- phpdoc-fr/reference/shmop/functions/shmop-write.xml:1.1 Sun Apr 14 20:38:21 2002 +++ phpdoc-fr/reference/shmop/functions/shmop-write.xml Wed Jul 9 07:30:43 2003 @@ -12,7 +12,7 @@ <title>Description</title> <methodsynopsis> <type>int</type><methodname>shmop_write</methodname> - <methodparam><type>resource</type><parameter>shmid</parameter></methodparam> + <methodparam><type>int</type><parameter>shmid</parameter></methodparam> <methodparam><type>string</type><parameter>data</parameter></methodparam> <methodparam><type>int</type><parameter>offset</parameter></methodparam> </methodsynopsis> @@ -34,9 +34,11 @@ <example> <title>Ecrire un bloc de mémoire partagée</title> <programlisting role="php"> -<?php -$shm_bytes_written = shmop_write($shm_id, $my_string, 0); -?> +<![CDATA[ +<?php + $shm_bytes_written = shmop_write($shm_id, $my_string, 0); +?> +]]> </programlisting> </example> </para>