cvs: pear /Mail_Queue Queue.php package.xml

From: Date: Thu, 11 Jan 2007 20:53:09 +0000
Subject: cvs: pear /Mail_Queue Queue.php package.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-44183@lists.php.net to get a copy of this message
quipo Thu Jan 11 20:53:09 2007 UTC Modified files: /pear/Mail_Queue Queue.php package.xml Log: implemented request #2721: you can now use your Mail_Queue Container class http://cvs.php.net/viewvc.cgi/pear/Mail_Queue/Queue.php?r1=1.19&r2=1.20&diff_format=u Index: pear/Mail_Queue/Queue.php diff -u pear/Mail_Queue/Queue.php:1.19 pear/Mail_Queue/Queue.php:1.20 --- pear/Mail_Queue/Queue.php:1.19 Fri Sep 8 18:54:30 2006 +++ pear/Mail_Queue/Queue.php Thu Jan 11 20:53:09 2007 @@ -17,7 +17,7 @@ // | Lorenzo Alberton <l dot alberton at quipo dot it> | // +----------------------------------------------------------------------+ // -// $Id: Queue.php,v 1.19 2006/09/08 18:54:30 quipo Exp $ +// $Id: Queue.php,v 1.20 2007/01/11 20:53:09 quipo Exp $ /** * Class for handle mail queue managment. @@ -98,8 +98,8 @@ * // end usage example * ------------------------------------------------------------------------- * -* @version $Revision: 1.19 $ -* $Id: Queue.php,v 1.19 2006/09/08 18:54:30 quipo Exp $ +* @version $Revision: 1.20 $ +* $Id: Queue.php,v 1.20 2007/01/11 20:53:09 quipo Exp $ * @author Radek Maciaszek <chief@php.net> */ @@ -150,7 +150,7 @@ * Mail_Queue - base class for mail queue managment. * * @author Radek Maciaszek <wodzu@tonet.pl> - * @version $Id: Queue.php,v 1.19 2006/09/08 18:54:30 quipo Exp $ + * @version $Id: Queue.php,v 1.20 2007/01/11 20:53:09 quipo Exp $ * @package Mail_Queue * @access public */ @@ -224,7 +224,13 @@ $container_class = 'Mail_Queue_Container_' . $container_type; $container_classfile = $container_type . '.php'; - include_once 'Mail/Queue/Container/' . $container_classfile; + + // Attempt to include a custom version of the named class, but don't treat + // a failure as fatal. The caller may have already included their own + // version of the named class. + if (!class_exists($container_class)) { + include_once 'Mail/Queue/Container/' . $container_classfile; + } $this->container = new $container_class($container_options); if(PEAR::isError($this->container)) { return new Mail_Queue_Error(MAILQUEUE_ERROR_CANNOT_INITIALIZE, http://cvs.php.net/viewvc.cgi/pear/Mail_Queue/package.xml?r1=1.27&r2=1.28&diff_format=u Index: pear/Mail_Queue/package.xml diff -u pear/Mail_Queue/package.xml:1.27 pear/Mail_Queue/package.xml:1.28 --- pear/Mail_Queue/package.xml:1.27 Tue Oct 17 07:36:33 2006 +++ pear/Mail_Queue/package.xml Thu Jan 11 20:53:09 2007 @@ -32,8 +32,8 @@ </maintainer> </maintainers> <release> - <version>1.1.4</version> - <date>2006-08-09</date> + <version>1.2.0</version> + <date>2007-01-11</date> <state>stable</state> <license>PHP</license> <notes> @@ -50,6 +50,7 @@ sent all the messages, when mail_options['persist'] is set - fixed bug #8661: wrong date() format in Mail_queue::put() - fixed bug #9065: MDB2 uses nextID(), not nextId() +- implemented request #2721: you can now use your Mail_Queue Container class </notes> <filelist> <dir name="/" baseinstalldir="Mail">

« previous php.pear.cvs (#44183) next »