I downgraded to PHP 5.2.8 from PHP 5.4.2 for a reason, I enabled the mcrypt extension, but when I run the function mcrypt_create_iv ($size, MCRYPT_DEV_RANDOM), it doesn't execute properly, and I get the following warning
Warning: mcrypt_create_iv() [function.mcrypt-create-iv]:Cannot open source device
Please how do I fix this issue? Thanks for any suggestion.