cvs: pear /SOAP Base.php /SOAP/Transport SMTP.php

From: Date: Tue, 14 May 2002 00:55:04 +0000
Subject: cvs: pear /SOAP Base.php /SOAP/Transport SMTP.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3812@lists.php.net to get a copy of this message
shane Mon May 13 20:55:04 2002 EDT Modified files: /pear/SOAP Base.php /pear/SOAP/Transport SMTP.php Log: use linux line endings, qmail does an ugly thing otherwise. This should work fine with all servers. Index: pear/SOAP/Base.php diff -u pear/SOAP/Base.php:1.9 pear/SOAP/Base.php:1.10 --- pear/SOAP/Base.php:1.9 Mon May 13 18:05:38 2002 +++ pear/SOAP/Base.php Mon May 13 20:55:03 2002 @@ -17,7 +17,7 @@ // | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author | // +----------------------------------------------------------------------+ // -// $Id: Base.php,v 1.9 2002/05/13 22:05:38 shane Exp $ +// $Id: Base.php,v 1.10 2002/05/14 00:55:03 shane Exp $ // require_once 'PEAR.php'; @@ -32,6 +32,7 @@ include_once 'Mail/mimeDecode.php'; if (class_exists('Mail_mimePart')) { $SOAP_options['Mime'] = 1; + define('MAIL_MIMEPART_CRLF',"\n"); } include_once 'Net/DIME.php'; @@ -89,7 +90,7 @@ * Common base class of all Soap lclasses * * @access public -* @version $Id: Base.php,v 1.9 2002/05/13 22:05:38 shane Exp $ +* @version $Id: Base.php,v 1.10 2002/05/14 00:55:03 shane Exp $ * @package SOAP::Client * @author Shane Caraveo <shane@php.net> Conversion to PEAR and updates */ @@ -755,6 +756,7 @@ $params['decode_bodies'] = TRUE; $params['decode_headers'] = TRUE; + // XXX lame thing to have to do for decoding $decoder = new Mail_mimeDecode($data); $structure = $decoder->decode($params); @@ -811,7 +813,7 @@ * class used to handle QNAME values in XML * * @access public -* @version $Id: Base.php,v 1.9 2002/05/13 22:05:38 shane Exp $ +* @version $Id: Base.php,v 1.10 2002/05/14 00:55:03 shane Exp $ * @package SOAP::Client * @author Shane Caraveo <shane@php.net> Conversion to PEAR and updates */ Index: pear/SOAP/Transport/SMTP.php diff -u pear/SOAP/Transport/SMTP.php:1.11 pear/SOAP/Transport/SMTP.php:1.12 --- pear/SOAP/Transport/SMTP.php:1.11 Mon May 13 18:05:46 2002 +++ pear/SOAP/Transport/SMTP.php Mon May 13 20:55:03 2002 @@ -16,7 +16,7 @@ // | Authors: Shane Caraveo <Shane@Caraveo.com> | // +----------------------------------------------------------------------+ // -// $Id: SMTP.php,v 1.11 2002/05/13 22:05:46 shane Exp $ +// $Id: SMTP.php,v 1.12 2002/05/14 00:55:03 shane Exp $ // // Status: rough draft, untested // @@ -38,7 +38,7 @@ * TODO: use PEAR smtp and Mime classes * * @access public -* @version $Id: SMTP.php,v 1.11 2002/05/13 22:05:46 shane Exp $ +* @version $Id: SMTP.php,v 1.12 2002/05/14 00:55:03 shane Exp $ * @package SOAP::Transport::SMTP * @author Shane Caraveo <shane@php.net> */ @@ -112,7 +112,7 @@ $out = &$msg; } else if (strcasecmp($options['transfer-encoding'],'base64')==0) { $headers['Content-Transfer-Encoding'] = 'base64'; - $out = chunk_split(base64_encode($msg)); + $out = chunk_split(base64_encode($msg),76,"\n"); } else { return $this->raiseSoapFault("Invalid Transfer Encoding: {$options['transfer-encoding']}"); } @@ -124,7 +124,7 @@ } foreach ($headers as $key => $value) { - $header_text .= "$key: $value\r\n"; + $header_text .= "$key: $value\n"; } $subject = array_key_exists('subject', $options) ? $options['subject'] : 'SOAP Message';

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