cvs: phpdoc-it /reference/sockets/functions socket-select.xml
| From: | Andrioli Darvin | Date: | Fri, 06 Jun 2003 20:15:14 +0000 |
| Subject: | cvs: phpdoc-it /reference/sockets/functions socket-select.xml | ||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-405@lists.php.net to get a copy of this message | ||
darvina Fri Jun 6 16:15:14 2003 EDT
Modified files:
/phpdoc-it/reference/sockets/functions socket-select.xml
Log:
Update to En 1.8
Index: phpdoc-it/reference/sockets/functions/socket-select.xml
diff -u phpdoc-it/reference/sockets/functions/socket-select.xml:1.3
phpdoc-it/reference/sockets/functions/socket-select.xml:1.4
--- phpdoc-it/reference/sockets/functions/socket-select.xml:1.3 Mon Jun 17 16:52:49 2002
+++ phpdoc-it/reference/sockets/functions/socket-select.xml Fri Jun 6 16:15:13 2003
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./it/functions/sockets.xml, last change in rev 1.4 -->
-<!-- last change to 'socket-select' in en/ tree in rev 1.27 -->
-<!-- EN-Revision: 1.7 Maintainer: darvina Status: ready -->
-<!-- OLD-Revision: 1.34/EN.1.27 -->
+<!-- EN-Revision: 1.8 Maintainer: darvina Status: ready -->
<refentry id="function.socket-select">
<refnamediv>
<refname>socket_select</refname>
@@ -61,9 +58,12 @@
/* Preparo l'array di lettura */
$read = array($socket1, $socket2);
-if (false === ($num_changed_sockets = socket_select($read, $write = NULL, $except = NULL, 0))) {
+$num_changed_sockets = socket_select($read, $write = NULL, $except = NULL, 0);
+
+
+if ($num_changed_sockets === false) {
/* Gestione dell'errore */
-else if ($num_changed_sockets > 0) {
+} else if ($num_changed_sockets > 0) {
/* Su almeno un socket è accaduto qualcosa di interessante */
}
]]>