Permalink
Browse files

silence fwrite() call that wasn't silenced

doc wording


git-svn-id: http://svn.php.net/repository/pear/packages/Net_Socket/trunk@252955 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
Chuck Hagenbuch
Chuck Hagenbuch committed Feb 15, 2008
1 parent b952905 commit 04cbf3673cb3cd7e368e910c4adc8c30c50230b7
Showing with 6 additions and 6 deletions.
  1. +6 −6 Socket.php
View
@@ -166,7 +166,7 @@ function connect($addr, $port = 0, $persistent = null, $timeout = null, $options
* Disconnects from the peer, closes the socket.
*
* @access public
- * @return mixed true on success or an error object otherwise
+ * @return mixed true on success or a PEAR_Error instance otherwise
*/
function disconnect()
{
@@ -198,7 +198,7 @@ function isBlocking()
*
* @param boolean $mode True for blocking sockets, false for nonblocking.
* @access public
- * @return mixed true on success or an error object otherwise
+ * @return mixed true on success or a PEAR_Error instance otherwise
*/
function setBlocking($mode)
{
@@ -218,7 +218,7 @@ function setBlocking($mode)
* @param integer $seconds Seconds.
* @param integer $microseconds Microseconds.
* @access public
- * @return mixed true on success or an error object otherwise
+ * @return mixed true on success or a PEAR_Error instance otherwise
*/
function setTimeout($seconds, $microseconds)
{
@@ -262,7 +262,7 @@ function setWriteBuffer($size)
* </p>
*
* @access public
- * @return mixed Array containing information about existing socket resource or an error object otherwise
+ * @return mixed Array containing information about existing socket resource or a PEAR_Error instance otherwise
*/
function getStatus()
{
@@ -317,7 +317,7 @@ function read($size)
* NULL means all at once.
*
* @access public
- * @return mixed true on success or an error object otherwise
+ * @return mixed true on success or a PEAR_Error instance otherwise
*/
function write($data, $blocksize = null)
{
@@ -326,7 +326,7 @@ function write($data, $blocksize = null)
}
if (is_null($blocksize) && !OS_WINDOWS) {
- return fwrite($this->fp, $data);
+ return @fwrite($this->fp, $data);
} else {
if (is_null($blocksize)) {
$blocksize = 1024;

0 comments on commit 04cbf36

Please sign in to comment.