Re: Mail/RFC822.php

From: Date: Fri, 26 Sep 2003 07:50:36 +0000
Subject: Re: Mail/RFC822.php
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22059@lists.php.net to get a copy of this message
On Thu Sep 25, 2003 at 08:2100PM -0600, Richard Bateman wrote: > I don't know who this needs to go to, so I am sending it here. I have > recently started using the PEAR Mail classes, including the file RFC822.php > > I have had to copy it outside of my PEAR dir structure because as > packaged I am unable to use it. In the code there is a line that has a > potential (and frequent) Notice on it that is blocked with an "@" > symbol. PLEASE PLEASE PLEASE do not do this in your code. We use a > custom error handler which catches all notices (as potential data > errors) and kills the script, and if this error is there it will get > thrown whether or not there is an "@" on the line. Many are not aware > of this problem (I wasn't until recently) > > If someone is in a position to fix the file, I do not know how to create > a patch, but starting on line 623 (I think), the code needs to be > changed as follows to make it work: It looks like this has already been fixed in the latest CVS version. At least I couldn't find a place where @ is used to suppres notices in RFC822.php. -- - Martin Martin Jansen http://martinjansen.com/

« previous php.pear.dev (#22059) next »