ID:               13373
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Bogus
+Status:           Open
 Bug Type:         IMAP related
 Operating System: FreeBSD 4.3
-PHP Version:      4.0CVS-2001-09-21
+PHP Version:      4.3.0RC2
 New Comment:

This is still an issue.


Previous Comments:
------------------------------------------------------------------------

[2002-06-24 23:12:16] [EMAIL PROTECTED]

Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.



------------------------------------------------------------------------

[2001-09-21 07:42:48] [EMAIL PROTECTED]

Bug 2181 is marked closed, but last comment indicates it should be
re-opened (sorry, I'm not the opener of 2181).  This would be what
$struct->type would normally be used for:

    $types = array(
      0 => "TEXT",
      1 => "MULTIPART",  
      2 => "MESSAGE",
      3 => "APPLICATION",
      4 => "AUDIO",
      5 => "IMAGE",
      6 => "VIDEO",
      7 => "OTHER"
    );
    if($struct->type) {
      $type = $types[$struct->type];
    } else {
      $type = "UNKNOWN";
    }

$struct->type will always evaluate as false, but you can see from
serializing the struct object that the type isn't being set at all. 
This probably should be fixed either way.

On the other hand, can we always assume that if $struct->type is
false/null/whatever, it is a text part?

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=13373&edit=1

Reply via email to