svn: /phpdoc/fr/trunk/reference/sockets/functions/ socket-create-pair.xml
| From: | Yannick Torres | Date: | Fri, 16 Sep 2011 22:34:52 +0000 |
| Subject: | svn: /phpdoc/fr/trunk/reference/sockets/functions/ socket-create-pair.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-8762@lists.php.net to get a copy of this message | ||
yannick Fri, 16 Sep 2011 22:34:52 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=316880
Log:
Fix bug #55605
Bug: https://bugs.php.net/55605 (Open) [FR] Untranslated
comments in socket_create_pair
Changed paths:
U phpdoc/fr/trunk/reference/sockets/functions/socket-create-pair.xml
Modified: phpdoc/fr/trunk/reference/sockets/functions/socket-create-pair.xml
===================================================================
--- phpdoc/fr/trunk/reference/sockets/functions/socket-create-pair.xml 2011-09-16 22:33:15 UTC (rev
316879)
+++ phpdoc/fr/trunk/reference/sockets/functions/socket-create-pair.xml 2011-09-16 22:34:52 UTC (rev
316880)
@@ -129,14 +129,14 @@
<?php
$sockets = array();
-/* On Windows we need to use AF_INET */
+/* Sous Windows, nous devons utiliser AF_INET */
$domain = (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' ? AF_INET : AF_UNIX);
/* Création de la paire de sockets */
if (socket_create_pair($domain, SOCK_STREAM, 0, $sockets) === false) {
echo "socket_create_pair a échoué. Raison : ".socket_strerror(socket_last_error());
}
-/* Send and Recieve Data */
+/* Envoie et reçoit les données */
if (socket_write($sockets[0], "ABCdef123\n", strlen("ABCdef123\n")) === false)
{
echo "socket_write() a échoué. Raison :
".socket_strerror(socket_last_error($sockets[0]));
}