Call to undefined function mcrypt_module_open() in CLI only, works fine when in browser
Posted on 2008-11-07
I'm encountering a weird problem.
I'm using xampp 1.6.4 on a windows box. I'm trying encryption using the CLI for PHP and gets the error: "Call to undefined function mcrypt_module_open() in ...."
Running phpinfo (php.exe -r phpinfo();) in the cli does not show mcrypt as enabled. Viewing the same script thru the browser, however, shows mcrypt as enabled.
Please help me in enabling mcrypt in CLI.