paragonie / sodium_compat

Pure PHP polyfill for ext/sodium
https://paragonie.com
ISC License
894 stars 64 forks source link

Class not found due to autoload-fast.php not including directory #151

Closed stesi561 closed 2 years ago

stesi561 commented 2 years ago

When using this package via Wordfence Wordpress plugin the following error was observed.

Uncaught Error: Class 'ParagonIE_Sodium_Compat' not found in vendor/paragonie/sodium_compat/autoload-fast.php:5

This was able to be fixed by prepending dirname(FILE) to the require_once in autoload-fast.php

stesi561 commented 2 years ago

PR to fix the above https://github.com/paragonie/sodium_compat/pull/150

paragonie-security commented 2 years ago

Fixed in v1.18.1