From: zoe dot slattery at googlemail dot com Operating system: Linux PHP version: 5.3CVS-2008-12-02 (snap) PHP Bug Type: Scripting Engine problem Bug description: Imap FT_UID handling problem
Description: ------------ In imap_fetch_overview() the FT_UID parameter is treated as a bitmap. This means that giving it completely invalid parameters for FT_UID does not cause an error. Suggested fix to imap_fetch_overview() is here: http://pastebin.com/m750e3ed2 Reproduce code: --------------- To run this you would need the imap_include.inc file that is in ~ext/imap/tests. http://pastebin.com/m4da53733 Expected result: ---------------- >From this code I'd expect two successful fetches followed by two failures. Actual result: -------------- Four successful fetches, PHP_INT_MAX and PHP_INT_MAX-1 are interpreted as 1 and 0 respectively. -- Edit bug report at http://bugs.php.net/?id=46731&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46731&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46731&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46731&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46731&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46731&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46731&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46731&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46731&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46731&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46731&r=support Expected behavior: http://bugs.php.net/fix.php?id=46731&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46731&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46731&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46731&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46731&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46731&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46731&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46731&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46731&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46731&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46731&r=mysqlcfg