[ postfixadmin-Bugs-1927707 ] tFmail error on line 35 in fetchmail.php
Brought to you by:
christian_boltz,
gingerdog
From: SourceForge.net <no...@so...> - 2008-04-03 22:21:05
|
Bugs item #1927707, was opened at 2008-03-28 04:50 Message generated for change (Comment added) made by christian_boltz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=937964&aid=1927707&group_id=191583 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Master Merlin Kull Kirkpatrick (thefathermind) Assigned to: Nobody/Anonymous (nobody) Summary: tFmail error on line 35 in fetchmail.php Initial Comment: I was getting an error of this nature. I am using a slightly older version of PHP and I suppose in newer versions it does not complain about variables that have not been defined yet. So I simply put an @ sign in front of the variable and this resolves the problem totally. Perhaps that should be implimented into the original source. Old Line... if (sizeof ($tFmail) > 0){ new Line... if (sizeof (@$tFmail) > 0){ ---------------------------------------------------------------------- >Comment By: Christian Boltz (christian_boltz) Date: 2008-04-04 00:21 Message: Logged In: YES user_id=593261 Originator: NO Usage of @ only supresses the error message, but not the problem (which might even become security relevant if register_globals is still on). I fixed the root of the problem instead - $tFmail was not initialized if the database doesn't contain any fetchmail entry. Fixed in SVN r316. BTW: The notice on undefined variables is also available in newer PHP versions (error_reporting = E_ALL). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=937964&aid=1927707&group_id=191583 |