php - mcrypt_get_iv_size() working in some scripts but returning undefined in others -


i have service defined in symfony encrypt , decrypt works fine in files return "call undefined function mcrypt_get_iv_size()" in 1 case.

$encrypter = $this->container->get('app.encrypt_controller'); $token = $encrypter->decrypt($this->container->getparameter('key'), $booking->getlink()->gettokenplatform()); 

after that, controller makes call external api , service decrypt works , controller execute php command:

$process = new process('php '.$this->container->getparameter('console_path').' airbnb:getmessages ' . $booking->getlink()->getid()   . ' ' . $booking->getid() . ' 0'); 

this script use decrypt service again:

$encrypter = $this->getcontainer()->get('app.encrypt_controller'); $token = $encrypter->decrypt($this->getcontainer()->getparameter('key'),$this->link->gettokenplatform()); 

but in case script return undefined exception function mcrypt_get_iv_size(). if execute command in console script works fine instead.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -