[Tickets #592] RESOLVED: view message text/plain error with php5

bugs at bugs.horde.org bugs at bugs.horde.org
Fri Sep 17 10:27:48 PDT 2004


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=592
-----------------------------------------------------------------------
 Ticket     | 592
 Updated By | dave at guidedvision.com
 Summary    | view message text/plain error with php5
 Queue      | IMP
 Version    | 3.2.5
 State      | Bogus
 Priority   | 1. Low
 Type       | Bug
 Owners     | 
-----------------------------------------------------------------------


dave at guidedvision.com (2004-09-17 10:27) wrote:

>From the PHP documentation for get_class:
"In PHP 4 get_class() returns a user defined class name in
lowercase, but in PHP 5 it will return the class name in its
original notation too, just like class names from PHP extensions"

So the fix I did was to change the condition to the following.
 strtolower(get_class($mime_part)) != 'mime_part'

Dear developers:
It might be a good idea to wrap get_class with strtolower where
ever you find it for PHP5 compatibility. (Even though it
seems PHP5 is not a concern for IMP 3.)

# grep -rs "get_class(" .






More information about the bugs mailing list