You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To load the extension from PHP, store `libsqlite_hashes.so` in your SQLite extensions folder. If you don't have any extensions yet, you can determine your SQLite extensions folder by defining the `sqlite3.extension_dir` variable as the filepath to the extensions directory in your `php.ini` file.
43
+
To load the extension from PHP, store `libsqlite_hashes.so` in your `SQLite` extensions folder. If you don't have any extensions yet, you can determine your `SQLite` extensions folder by defining the `sqlite3.extension_dir` variable as the filepath to the extensions directory in your `php.ini` file.
Now, make sure to always load the extension by running `SQLite3::loadExtension('libsqlite_hashes.so');` (remember to include the correct file extension according to your Operating System, e.g., `.so` for Linux, `.dll` for Windows, and `.dylib` for MacOS) in each project you intend to use sqlite hash functions.
63
+
Now, make sure to always load the extension by running `SQLite3::loadExtension('libsqlite_hashes.so');` (remember to include the correct file extension according to your Operating System, e.g., `.so` for Linux, `.dll` for Windows, and `.dylib` for macOS) in each project you intend to use sqlite hash functions.
64
64
65
65
For instance, the following code snippet demonstrate the minimum required code to run SHA256 in a string "password":
Warning: According to <https://github.com/nyurik/sqlite-hashes/issues/71>, PHP 7 fails to load the extension with or without specifying the file extension as it ends up looking for a file with a double extension (e.g., libsqlite_hashes.so.so). Therefore, we recommend using it with PHP 8.
74
+
Warning: According to <https://github.com/nyurik/sqlite-hashes/issues/71>, PHP 7 fails to load the extension with or without specifying the file extension as it ends up looking for a file with a double extension (e.g., `libsqlite_hashes.so.so`). Therefore, we recommend using it with PHP 8.
0 commit comments