cvs: phpdoc /en/reference/sockets/functions socket-set-nonblock.xml

From: Date: Thu, 29 Jan 2004 19:52:36 +0000
Subject: cvs: phpdoc /en/reference/sockets/functions socket-set-nonblock.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969358565@lists.php.net to get a copy of this message
derek Thu Jan 29 14:52:36 2004 EDT Modified files: /phpdoc/en/reference/sockets/functions socket-set-nonblock.xml Log: fixing spacing http://cvs.php.net/diff.php/phpdoc/en/reference/sockets/functions/socket-set-nonblock.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc/en/reference/sockets/functions/socket-set-nonblock.xml diff -u phpdoc/en/reference/sockets/functions/socket-set-nonblock.xml:1.4 phpdoc/en/reference/sockets/functions/socket-set-nonblock.xml:1.5 --- phpdoc/en/reference/sockets/functions/socket-set-nonblock.xml:1.4 Thu Jan 29 13:05:50 2004 +++ phpdoc/en/reference/sockets/functions/socket-set-nonblock.xml Thu Jan 29 14:52:36 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/sockets.xml, last change in rev 1.27 --> <refentry id="function.socket-set-nonblock"> <refnamediv> @@ -24,17 +24,17 @@ <![CDATA[ <?php $port = 9090; -if(! $socket = socket_create_listen( $port ) ) +if(!$socket = socket_create_listen($port)) { - echo socket_strerror( socket_last_error( ) ); + echo socket_strerror(socket_last_error()); } -if(! socket_set_option( $socket, SOL_SOCKET, SO_REUSEADDR, 1 ) ) +if(!socket_set_option($socket, SOL_SOCKET, SO_REUSEADDR, 1)) { - echo socket_strerror( socket_last_error( ) ); + echo socket_strerror(socket_last_error()); } -if(! socket_set_nonblock( $socket ) ) +if(!socket_set_nonblock($socket)) { - echo socket_strerror( socket_last_error( ) ); + echo socket_strerror(socket_last_error()); } ?> ]]>

« previous php.doc (#969358565) next »