| 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 (7776 days ago) |
| Due | |
| Updated | 09/17/2004 (7775 days ago) |
| Assigned | |
| Resolved | 09/16/2004 (7776 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
"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(" .
State ⇒ Not A Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ view message text/plain error with php5
Queue ⇒ IMP
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.