php - Undefined function mcrypt after update OSX to "El Capitan" -


i have problem mcrypt extension after update "yosemite" "el capitan".

fatal error: call undefined function mcrypt_decrypt() in /users/pilipe/sites/prestashop-test/classes/rijndael.php on line 68

in php.ini, added line :

extension="/usr/local/cellar/php56-mcrypt/5.6.13/mcrypt.so"

when launch command line :

php -i | grep 'mcrypt'

i have :

additional .ini files parsed => /usr/local/etc/php/5.6/conf.d/ext-mcrypt.ini
registered stream filters => zlib., bzip2., convert.iconv., string.rot13, string.toupper, string.tolower, string.strip_tags, convert., consumed, dechunk, mcrypt., mdecrypt.
php warning: unknown: not safe rely on system's timezone settings. required use date.timezone setting or date_default_timezone_set() function. in case used of methods , still getting warning, misspelled timezone identifier. selected timezone 'utc' now, please set date.timezone select timezone. in unknown on line 0
mcrypt
mcrypt support => enabled
mcrypt_filter support => enabled
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value
pwd => /usr/local/cellar/php56-mcrypt/5.6.13
_server["pwd"] => /usr/local/cellar/php56-mcrypt/5.6.13

command php -v :

php 5.6.13 (cli) (built: oct 2 2015 23:07:16)
copyright (c) 1997-2015 php group
zend engine v2.6.0, copyright (c) 1998-2015 zend technologies

i installed mcrypt :

brew install php56-mcrypt

i did :

brew link php56-mcrypt

why mcrypt not working ?

thank in advance.
sincerely philippe.

i able resolve uninstalling homebrew, reinstalling homebrew , installing php 5.6 mcrypt package. advantage of method on pilipe's solution doesn't require disabling new system integrity protection (sip).

// uninstall homebrew [sudo] rm -rf /usr/local/cellar /usr/local/.git && brew cleanup  // reinstall homebrea ruby -e "$(curl -fssl    https://raw.githubusercontent.com/homebrew/install/master/install)"  // install mcrypt brew install php53-mcrypt  // test mcrypt mcrypt -v // should result in  // mcrypt v.0.9.9 (i386-apple-darwin15.0.0) // linked against libmcrypt v.2.5.8 // copyright (c) 1998-2002 nikos mavroyanopoulos (nmav@gnutls.org) 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -