derek           Tue Apr  6 16:10:01 2004 EDT

  Modified files:              
    /phpdoc/en/reference/sockets/functions      socket-create-pair.xml 
  Log:
  Fixing example and sentence fluidity
  
http://cvs.php.net/diff.php/phpdoc/en/reference/sockets/functions/socket-create-pair.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc/en/reference/sockets/functions/socket-create-pair.xml
diff -u phpdoc/en/reference/sockets/functions/socket-create-pair.xml:1.5 
phpdoc/en/reference/sockets/functions/socket-create-pair.xml:1.6
--- phpdoc/en/reference/sockets/functions/socket-create-pair.xml:1.5    Wed Feb 25 
01:04:50 2004
+++ phpdoc/en/reference/sockets/functions/socket-create-pair.xml        Tue Apr  6 
16:10:00 2004
@@ -1,10 +1,10 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <!-- splitted from ./en/functions/sockets.xml, last change in rev 1.27 -->
   <refentry id="function.socket-create-pair">
    <refnamediv>
     <refname>socket_create_pair</refname>
-    <refpurpose>Creates a pair of indistinguishable sockets and stores them in fds. 
</refpurpose>
+    <refpurpose>Creates a pair of indistinguishable sockets and stores them in an 
array. </refpurpose>
    </refnamediv>
    <refsect1>
     <title>Description</title>
@@ -223,6 +223,7 @@
     if (socket_read($ary[1], strlen($strtwo), PHP_BINARY_READ) == $strtwo) {
         echo "Recieved $strtwo\n";
     }
+       socket_close($ary[1]);
 } else {
     /*child*/
     socket_close($ary[1]);
@@ -232,6 +233,7 @@
     if (socket_read($ary[0], strlen($strone), PHP_BINARY_READ) == $strone) {
         echo "Recieved $strone\n";
     }
+       socket_close($ary[0]);
 }
 ?>
 ]]>

Reply via email to