-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve error when dlopen() fails #21
Comments
Erikvv
changed the title
Better error when dlopen() fails
Impreve error when dlopen() fails
Nov 18, 2021
Erikvv
changed the title
Impreve error when dlopen() fails
Improve error when dlopen() fails
Nov 18, 2021
Possible it can be called like so:
|
Erikvv
added a commit
that referenced
this issue
Jun 25, 2022
When the uplink library cannot be loaded, there is currently a generic message originating from PHP. This is in all PHP versions. This change adds extra information which will help the user diagnose the issue. Example of old output: Fatal error: Uncaught FFI\Exception: Failed loading '/app/build/libuplink-x86_64-linux.so' in /app/src/Uplink.php:42 Example of new output: Fatal error: Uncaught FFI\Exception: Failed loading '/app/build/libuplink-x86_64-linux.so'. /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /app/build/libuplink-x86_64-linux.so) in /app/src/Uplink.php:60 Fixes #21
Erikvv
added a commit
that referenced
this issue
Jul 3, 2022
When the uplink library cannot be loaded, there is currently a generic message originating from PHP. This is in all PHP versions. This change adds extra information which will help the user diagnose the issue. Example of old output: Fatal error: Uncaught FFI\Exception: Failed loading '/app/build/libuplink-x86_64-linux.so' in /app/src/Uplink.php:42 Example of new output: Fatal error: Uncaught FFI\Exception: Failed loading '/app/build/libuplink-x86_64-linux.so'. /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /app/build/libuplink-x86_64-linux.so) in /app/src/Uplink.php:60 Fixes #21
Erikvv
added a commit
that referenced
this issue
Jul 20, 2022
When the uplink library cannot be loaded, there is currently a generic message originating from PHP. This is in all PHP versions. This change adds extra information which will help the user diagnose the issue. Example of old output: Fatal error: Uncaught FFI\Exception: Failed loading '/app/build/libuplink-x86_64-linux.so' in /app/src/Uplink.php:42 Example of new output: Fatal error: Uncaught FFI\Exception: Failed loading '/app/build/libuplink-x86_64-linux.so'. /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /app/build/libuplink-x86_64-linux.so) in /app/src/Uplink.php:60 Fixes #21
Erikvv
added a commit
that referenced
this issue
Jul 20, 2022
When the uplink library cannot be loaded, there is currently a generic message originating from PHP. This is in all PHP versions. This change adds extra information which will help the user diagnose the issue. Example of old output: Fatal error: Uncaught FFI\Exception: Failed loading '/app/build/libuplink-x86_64-linux.so' in /app/src/Uplink.php:42 Example of new output: Fatal error: Uncaught FFI\Exception: Failed loading '/app/build/libuplink-x86_64-linux.so'. /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /app/build/libuplink-x86_64-linux.so) in /app/src/Uplink.php:60 Fixes #21
Erikvv
added a commit
that referenced
this issue
Jul 20, 2022
When the uplink library cannot be loaded, there is currently a generic message originating from PHP. This is in all PHP versions. This change adds extra information which will help the user diagnose the issue. Example of old output: Fatal error: Uncaught FFI\Exception: Failed loading '/app/build/libuplink-x86_64-linux.so' in /app/src/Uplink.php:42 Example of new output: Fatal error: Uncaught FFI\Exception: Failed loading '/app/build/libuplink-x86_64-linux.so'. /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /app/build/libuplink-x86_64-linux.so) in /app/src/Uplink.php:60 Fixes #21
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For various platform compatibility issues there is the error for the user:
dlerror()
usually contains more information about why it failed and can help the user fix the problem. I should add that to the error. Possibly improve PHP core.The text was updated successfully, but these errors were encountered: