Bug #55168 [NEW]: mcrypt_create_iv uses E_ERROR on Win and E_WARNING on *nix
| From: | ircmaxell at gmail dot com | Date: | Sat, 09 Jul 2011 19:33:01 +0000 |
| Subject: | Bug #55168 [NEW]: mcrypt_create_iv uses E_ERROR on Win and E_WARNING on *nix | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-161727@lists.php.net to get a copy of this message | ||
From:
Operating system: Windows
PHP version: 5.4SVN-2011-07-09 (SVN)
Package: mcrypt related
Bug Type: Bug
Bug description:mcrypt_create_iv uses E_ERROR on Win and E_WARNING on *nix
Description:
------------
If you call mcrypt_create_iv with either the MCRYPT_DEV_RANDOM or
MCRYPT_DEV_URANDOM constants, and it cannot generate enough data, it issues
an
E_ERROR fatal error. However, on linux when the same situation it will
just
issue
an E_WARNING.
I suggest that it should be changed from an E_ERROR to an E_WARNING on
Windows
(as
it certainly is recoverable).
See:
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/ext/mcrypt/mcrypt.c?
revision=311033&view=markup
Specifically lines 1397 and 1422
--
Edit bug report at https://bugs.php.net/bug.php?id=55168&edit=1
--
Try a snapshot (PHP 5.2): https://bugs.php.net/fix.php?id=55168&r=trysnapshot52
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55168&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55168&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55168&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55168&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55168&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55168&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55168&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55168&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55168&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55168&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55168&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55168&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55168&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55168&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55168&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55168&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55168&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55168&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55168&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55168&r=mysqlcfg
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55168&r=trysnapshot54