php: Fix an undefined variasble in an error message
authorDavid Reiss <dreiss@apache.org>
Thu, 17 Jul 2008 19:36:34 +0000 (19:36 +0000)
committerDavid Reiss <dreiss@apache.org>
Thu, 17 Jul 2008 19:36:34 +0000 (19:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@677698 13f79535-47bb-0310-9956-ffa450edef68

lib/php/src/transport/TSocket.php

index e1bd3bd..3967748 100644 (file)
@@ -277,7 +277,7 @@ class TSocket extends TTransport {
       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 '.