php-jwt
php-jwt copied to clipboard
Uncaught Error: Call to undefined function jwt_encode()
Well, this weird but I have compiled and installed the module but I am still getting Uncaught Error: Call to undefined function jwt_encode() .
I have verified from phpinfo() that jwt.ini is loading.
I am using PHP 7.3 on runcloud.
I installed module using:
/RunCloud/Packages/php73rc/bin/phpize && ./configure --with-openssl=/usr/bin/openssl --with-php-config=/RunCloud/Packages/php73rc/bin/php-config
make
sudo make install
Am I missing something here?
Hi, after you compile, go to modules directory, you will find jwt.so file add this to php.ini file extension= jwt_install_path/modules/jwt.so
and it will work
@ecjep Already done that. Besides, I switched to another library.
@Aniruddh-J i guessed, any way this might help for others
Hi, after you compile, go to modules directory, you will find jwt.so file add this to php.ini file extension= jwt_install_path/modules/jwt.so
and it will work
This works for me. Why doesn't this appear in install instructions in README? It should.