Giter Club home page Giter Club logo

Comments (5)

erikdubbelboer avatar erikdubbelboer commented on June 12, 2024

Should be fixed in the latest version. I have added random_compat as you suggested 👍 Thanks!

from phpredisadmin.

krzyko avatar krzyko commented on June 12, 2024

Is there any preferred way to use random_compat without composer? I've managed to edit common.inc.php but i'd like to avoid doing it every release.

from phpredisadmin.

erikdubbelboer avatar erikdubbelboer commented on June 12, 2024

It's mentioned here under the "Manual installation" section here: https://github.com/paragonie/random_compat#installing

from phpredisadmin.

krzyko avatar krzyko commented on June 12, 2024

I've read that documentation earlier and I had to do two things:

  1. Put random_compat's lib folder into phpRedisAdmin directory.
    2, Modify phpRedisAdmin source file common.inc.php to include ../lib/random.php file.
    I'd like to avoid the 2nd step for every phpRedisAdmin release.

And the question is, if it's possible to check in the /includes/common.inc.php file for random_compat function and if not found require /lib/random.php file if it exist.

Something like:
if (!is_callable('random_bytes') && file_exists(PHPREDIS_ADMIN_PATH . '/lib/random.php')) {
require PHPREDIS_ADMIN_PATH. '/lib/random.php';
}

Alternatively lib folder might be located under vendor directory.

from phpredisadmin.

erikdubbelboer avatar erikdubbelboer commented on June 12, 2024

I'm curious, why can't you use composer?

I'm ok with adding this code, can you make a pull request and can you add proper documentation on how to use it for others?

from phpredisadmin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.