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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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 Dec 26 12:01:30 2024 UTC