You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2008/07/17 21:36:35 UTC
svn commit: r677698 -
/incubator/thrift/trunk/lib/php/src/transport/TSocket.php
Author: dreiss
Date: Thu Jul 17 12:36:34 2008
New Revision: 677698
URL: http://svn.apache.org/viewvc?rev=677698&view=rev
Log:
php: Fix an undefined variasble in an error message
Modified:
incubator/thrift/trunk/lib/php/src/transport/TSocket.php
Modified: incubator/thrift/trunk/lib/php/src/transport/TSocket.php
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/php/src/transport/TSocket.php?rev=677698&r1=677697&r2=677698&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/php/src/transport/TSocket.php (original)
+++ incubator/thrift/trunk/lib/php/src/transport/TSocket.php Thu Jul 17 12:36:34 2008
@@ -277,7 +277,7 @@
if ($got === 0 || $got === FALSE) {
$md = stream_get_meta_data($this->handle_);
if ($md['timed_out']) {
- throw new TException('TSocket: timed out writing '.$len.' bytes from '.
+ throw new TException('TSocket: timed out writing '.strlen($buf).' bytes from '.
$this->host_.':'.$this->port_);
} else {
throw new TException('TSocket: Could not write '.strlen($buf).' bytes '.