php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5928 imap_header misbehaving
Submitted: 2000-08-02 19:42 UTC Modified: 2000-08-02 20:00 UTC
From: dale at ownsu dot net Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.1pl2 OS: Redhat 6.2 Intel x86
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: dale at ownsu dot net
New email:
PHP Version: OS:

 

 [2000-08-02 19:42 UTC] dale at ownsu dot net
$header = imap_header($mbox, $msgno, 30 , 50);
echo $header->fetchsubject;

produces

Warning: Undefined property: fetchsubject 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-02 20:00 UTC] hholzgra@php.net
this one is easy: if this property is not set,
then there is no Subject: header in this message

so you should test it with isset($header->fetchsubject)
before using

(same applies to fetchfrom property)

if you don't like this kind of interface
please issue a feature request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 07:01:30 2024 UTC