[phpldapadmin] [ phpldapadmin-Bugs-3484033 ] Blowfish_encrypt fails with PhP 5.2 and Windows
SourceForge.net <[email protected]> Fri, 03 Feb 2012 13:47:24 -0800
| Newsgroups | gmane.comp.ldap.davedap |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #3484033, was opened at 2012-02-03 13:47
Message generated for change (Tracker Item Submitted) made by cgmonroe
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=3484033&group_id=61828
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 1.2.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: cg_monroe (cgmonroe)
Assigned to: Nobody/Anonymous (nobody)
Summary: Blowfish_encrypt fails with PhP 5.2 and Windows
Initial Comment:
PhP5.2 under Windows does not support the MCRYPT_DEV_URANDOM device. So, if you have the mcrypt enabled, the blowfish_encrypt and blowfish_decrypt functions will throw the error:
mcrypt_create_iv() [function.mcrypt-create-iv]: Cannot open source device
Since I needed mcrypt for other code and could not update to 5.3 (Drupal 6 contrib module problems), my workaround was comment out the "if function_exists('mcrypt_module_open) conditions in both blowfish_encrypt and blowfish_decrypt (in fucntions.php). This seems to let it fall thru to the working versions.
Permanent fix might be to either not use MCRYPT_DEV_URANDOM or maybe just check for PhP Version in the condition. See the PhP manual comments for more details on this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=3484033&group_id=61828
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/