Re: PEAR_Exception & PEAR_Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



filter_var() is an excellent suggestion and works great.

Richard Heyes wrote:
I'm using the pear class Mail_RFC822::parseAddressList() which apparently only throws an error_object for PEAR_Error.


You might want to consider the filter_var() function if you can - it will be much faster.

The manual says that PEAR_Error is deprecated, so I'd like to use PEAR_Exception; but; am having trouble getting it to recognize the error.

Can anyone help me with this?

You could use your own version of RFC822.php and use the wonderful search and replace. Don't worry about updates, Mail_RFC822 is quite stable, and has been for some years.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux