I am not able to fetch subject from my imap_header function in one particular environment. The code works in all the other environments.

The case concerned here is Windows NT with imap client version 2000.

The code is

$header_info = imap_header($this->ml_handle, $message_id, 800, 800);
$subject = $header_info->subject;
echo "subject=".$header_info->fetchsubject;

The above code works in almost all the other OS and hence am not sure whether this is a bug related to the imap client version. For this reason, imap_fetch_overview or imap_headerinfo also don't work.

How do I debug this?