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
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: 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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 29 08:00:02 2026 UTC