Small patch for /pear/XML_RPC/RPC.php

From: Date: Mon, 28 Oct 2002 03:28:05 +0000
Subject: Small patch for /pear/XML_RPC/RPC.php
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10303@lists.php.net to get a copy of this message
After upgrading XML_RPC to 1.0.4, the following error occours if the server side is down: Warning: fputs(): supplied argument is not a valid File-Handle resource in <file> on line 477 This is a small patch which could fix this. We are running win32. regards, Andreas.

Index: RPC.php =================================================================== RCS file: /var/lib/cvs/ts/web/lib/external/pear/XML/RPC/RPC.php,v retrieving revision 1.2 diff -u -r1.2 RPC.php --- RPC.php 28 Oct 2002 00:54:16 -0000 1.2 +++ RPC.php 28 Oct 2002 03:16:06 -0000 @@ -474,7 +474,7 @@ // print($op); - if (!fputs($fp, $op, strlen($op))) { + if (!$fp || !fputs($fp, $op, strlen($op))) { $this->errstr="Write error"; return 0; }
« previous php.pear.dev (#10303) next »