Closed mgluesenkamp closed 1 year ago
Check that ldd /var/www/alexa-skill-telegram/var/tdlib/libtdjson.so.1.8.0
shows no missing dependencies.
You can also compare your FFI usage with code of other wrappers from https://github.com/tdlib/td/tree/master/example#using-tdlib-in-php-projects.
Ah, thank you for the ldd
command. I did not know this command.
It misses libssl.so.3
and libcrypto.so.3
. The normal PHP docker container does not provite openssl 3 features. So I have to build my own one. Thanks! Issue can be closed. :)
Hi,
I builded the library with the help of the build instructions at https://tdlib.github.io/td/build.html?language=PHP. The build works without any problems, but I can't load my builded libtdjson.so.1.8.0 by FFI in PHP. But I always got the following error:
I tried several other possibilities, but I run out of ideas:
php -v
.bcmath.so
it works.Are there any restrictions in PHP to make it work or builded it wrong? Thank you for any advise!