Author: Alexandru Stanoi Date: 2007-01-31 14:43:19 +0100 (Wed, 31 Jan 2007) New Revision: 4602
Log: - Fixed a missing exception. Modified: trunk/Mail/src/transports/smtp/transport_smtp.php trunk/Mail/src/transports/transport_connection.php Modified: trunk/Mail/src/transports/smtp/transport_smtp.php =================================================================== --- trunk/Mail/src/transports/smtp/transport_smtp.php 2007-01-31 10:19:05 UTC (rev 4601) +++ trunk/Mail/src/transports/smtp/transport_smtp.php 2007-01-31 13:43:19 UTC (rev 4602) @@ -422,7 +422,7 @@ * @throws ezcMailTransportSmtpException * if no connection could be made * or if the login failed - * @throws ezcBaseFeatureNotFoundException + * @throws ezcBaseExtensionNotFoundException * if trying to use SSL and the openssl extension is not installed */ private function connect() @@ -432,7 +432,7 @@ if ( $this->options->connectionType !== self::CONNECTION_PLAIN && !ezcBaseFeatures::hasExtensionSupport( 'openssl' ) ) { - throw new ezcBaseFeatureNotFoundException( "Failed to connect to the server: {$this->serverHost}:{$this->serverPort}. PHP not configured --with-openssl." ); + throw new ezcBaseExtensionNotFoundException( 'openssl', null, "PHP not configured --with-openssl." ); } if ( count( $this->options->connectionOptions ) > 0 ) { Modified: trunk/Mail/src/transports/transport_connection.php =================================================================== --- trunk/Mail/src/transports/transport_connection.php 2007-01-31 10:19:05 UTC (rev 4601) +++ trunk/Mail/src/transports/transport_connection.php 2007-01-31 13:43:19 UTC (rev 4602) @@ -50,7 +50,7 @@ * * @throws ezcMailTransportException * if a connection to the server could not be made - * @throws ezcBaseFeatureNotFoundException + * @throws ezcBaseExtensionNotFoundException * if trying to use SSL and the extension openssl is not installed * @throws ezcBasePropertyNotFoundException * if $options contains a property not defined @@ -69,7 +69,7 @@ { if ( ezcBaseFeatures::hasExtensionSupport( 'openssl' ) !== true ) { - throw new ezcBaseFeatureNotFoundException( "Failed to connect to the server: {$server}:{$port}. PHP not configured --with-openssl." ); + throw new ezcBaseExtensionNotFoundException( 'openssl', null, "PHP not configured --with-openssl." ); } $this->connection = @stream_socket_client( "ssl://{$server}:{$port}", $errno, $errstr, $this->options->timeout ); -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components