From: misc at e2007 dot cynergi dot com Operating system: PHP version: 5.2.4 PHP Bug Type: Feature/Change Request Bug description: access to IMAP's body_types[] textual array
Description: ------------ While talking to the IMAP extension makers, I noticed your usage of numeric constants for the main MIME-type of a message can be misleading. I'll be adding a documentation comment to imap_fetchstructure() later today, detailing this issue. In order not to break old PHP scripts, adding access to IMAP's textual body_types[] would be great. Reproduce code: --------------- Feature request -- not applicable. Expected result: ---------------- Feature request -- not applicable. Actual result: -------------- Feature request -- not applicable. -- Edit bug report at http://bugs.php.net/?id=43061&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43061&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43061&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43061&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43061&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43061&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43061&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43061&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43061&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43061&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43061&r=support Expected behavior: http://bugs.php.net/fix.php?id=43061&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43061&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43061&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43061&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43061&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43061&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43061&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43061&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43061&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43061&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43061&r=mysqlcfg