6.0.0-beta1
8/12/25
  • Error
    Ticket 4291 was not found.

[#592] view message text/plain error with php5
Summary view message text/plain error with php5
Queue IMP
Queue Version 3.2.5
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester franck.poussiere (at) wanadoo (dot) fr
Created 09/16/2004 (7635 days ago)
Due
Updated 09/17/2004 (7634 days ago)
Assigned
Resolved 09/16/2004 (7635 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/17/2004 05:27:48 PM dave (at) guidedvision (dot) com Comment #3 Reply to this comment
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(" .




09/16/2004 10:56:58 AM Jan Schneider Comment #2
State ⇒ Not A Bug
Reply to this comment
IMP 3 does not support PHP 5 and never will.
09/16/2004 09:23:41 AM franck (dot) poussiere (at) wanadoo (dot) fr Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ view message text/plain error with php5
Queue ⇒ IMP
Reply to this comment
IMP doesn't not display le body content of the message. I solved the 
problem in the horde/lib/Viewer.php method factory.



the method get_class($mime_part) in PHP5 probably doesn't work. I 
remove the condition and it works now.

Saved Queries