php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9081 Typo in pear/Mail/smtp.php
Submitted: 2001-02-02 13:35 UTC Modified: 2001-02-02 14:08 UTC
From: jpdalbec at cc dot ysu dot edu Assigned:
Status: Closed Package: Mail related
PHP Version: 4.0.4pl1 OS: Linux for S/390
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jpdalbec at cc dot ysu dot edu
New email:
PHP Version: OS:

 

 [2001-02-02 13:35 UTC] jpdalbec at cc dot ysu dot edu
I think this is a typo:
    function Mail_smtp($params)
    {
        if (isset($params['host'])) $this->host = $params['host'];
        if (isset($params['port'])) $this->host = $params['port'];
        if (isset($params['auth'])) $this->host = $params['auth'];
        if (isset($params['username'])) $this->host = $params['username'];
        if (isset($params['password'])) $this->host = $params['password'];
    }

It should be:
    function Mail_smtp($params)
    {
        if (isset($params['host'])) $this->host = $params['host'];
        if (isset($params['port'])) $this->port = $params['port'];
        if (isset($params['auth'])) $this->auth = $params['auth'];
        if (isset($params['username'])) $this->username = $params['username'];
        if (isset($params['password'])) $this->password = $params['password'];
    }

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-02 14:01 UTC] chagenbu@php.net
yup, how about that. nice catch - it's fixed now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 21:01:29 2024 UTC