From 1931b12be037fe3e0e70f09510497aa78e2b586a Mon Sep 17 00:00:00 2001 From: David Reiss Date: Thu, 17 Jul 2008 19:36:34 +0000 Subject: [PATCH] php: Fix an undefined variasble in an error message git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@677698 13f79535-47bb-0310-9956-ffa450edef68 --- lib/php/src/transport/TSocket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/php/src/transport/TSocket.php b/lib/php/src/transport/TSocket.php index e1bd3bd6..39677488 100644 --- a/lib/php/src/transport/TSocket.php +++ b/lib/php/src/transport/TSocket.php @@ -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 '. -- 2.17.1