|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-27 10:05 UTC] nicos@php.net
[2003-08-02 10:35 UTC] cox@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 21 22:00:02 2025 UTC |
Description: ------------ Warning: fwrite(): supplied argument is not a valid stream resource in Remote.php on line 95 Warning: fclose(): supplied argument is not a valid stream resource in Remote.php on line 96 In fact the $fp verification is not correct. But hey, here is the patch ! cvs server: Diffing . Index: Remote.php =================================================================== RCS file: /repository/php-src/pear/PEAR/Remote.php,v retrieving revision 1.41 diff -u -u -r1.41 Remote.php --- Remote.php 12 Jul 2003 14:25:06 -0000 1.41 +++ Remote.php 27 Jul 2003 14:58:53 -0000 @@ -91,7 +91,7 @@ $filename = $cachedir.'/xmlrpc_cache_'.$id; $fp = @fopen($filename, "wb"); - if ($fp !== null) { + if ($fp !== false) { fwrite($fp, serialize($data)); fclose($fp); }; Reproduce code: --------------- pear info spplus as non root. Expected result: ---------------- correct stuff? ;-) Actual result: -------------- notices.