joey Mon Jun 2 09:52:59 2003 EDT
Modified files:
/phpdoc/en/reference/sockets reference.xml
Log:
Make example line buffered. Noticed by Benjamin Kuz.
Index: phpdoc/en/reference/sockets/reference.xml
diff -u phpdoc/en/reference/sockets/reference.xml:1.9
phpdoc/en/reference/sockets/reference.xml:1.10
--- phpdoc/en/reference/sockets/reference.xml:1.9 Thu Apr 17 17:44:32 2003
+++ phpdoc/en/reference/sockets/reference.xml Mon Jun 2 09:52:59 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
<reference id="ref.sockets">
<title>Socket functions</title>
<titleabbrev>Sockets</titleabbrev>
@@ -141,7 +141,7 @@
socket_write($msgsock, $msg, strlen($msg));
do {
- if (FALSE === ($buf = socket_read ($msgsock, 2048))) {
+ if (FALSE === ($buf = socket_read ($msgsock, 2048, PHP_NORMAL_READ))) {
echo "socket_read() failed: reason: " . socket_strerror ($ret) . "\n";
break 2;
}
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php