| 1 |
From: "Andreas Motl" <andreas.motl@ilo.de> |
| 2 |
To: <pear-dev@lists.php.net> |
| 3 |
Subject: Small patch for /pear/XML_RPC/RPC.php |
| 4 |
Date: Mon, 28 Oct 2002 04:28:05 +0100 |
| 5 |
|
| 6 |
This is a multi-part message in MIME format. |
| 7 |
|
| 8 |
------=_NextPart_000_0005_01C27E3A.68FA43F0 |
| 9 |
Content-Type: text/plain; |
| 10 |
charset="iso-8859-1" |
| 11 |
Content-Transfer-Encoding: 7bit |
| 12 |
|
| 13 |
After upgrading XML_RPC to 1.0.4, the following error occours if the server |
| 14 |
side is down: |
| 15 |
|
| 16 |
Warning: fputs(): supplied argument is not a valid File-Handle resource |
| 17 |
in <file> on line 477 |
| 18 |
|
| 19 |
This is a small patch which could fix this. We are running win32. |
| 20 |
|
| 21 |
regards, Andreas. |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
------=_NextPart_000_0005_01C27E3A.68FA43F0 |
| 26 |
Content-Type: text/plain; |
| 27 |
name="diff.txt" |
| 28 |
Content-Transfer-Encoding: 7bit |
| 29 |
Content-Disposition: attachment; |
| 30 |
filename="diff.txt" |
| 31 |
|
| 32 |
Index: RPC.php |
| 33 |
=================================================================== |
| 34 |
RCS file: /var/lib/cvs/ts/web/lib/external/pear/XML/RPC/RPC.php,v |
| 35 |
retrieving revision 1.2 |
| 36 |
diff -u -r1.2 RPC.php |
| 37 |
--- RPC.php 28 Oct 2002 00:54:16 -0000 1.2 |
| 38 |
+++ RPC.php 28 Oct 2002 03:16:06 -0000 |
| 39 |
@@ -474,7 +474,7 @@ |
| 40 |
|
| 41 |
// print($op); |
| 42 |
|
| 43 |
- if (!fputs($fp, $op, strlen($op))) { |
| 44 |
+ if (!$fp || !fputs($fp, $op, strlen($op))) { |
| 45 |
$this->errstr="Write error"; |
| 46 |
return 0; |
| 47 |
} |
| 48 |
|
| 49 |
------=_NextPart_000_0005_01C27E3A.68FA43F0-- |