Library very slow after moving servers

Issue #13 wontfix
Benny Nissen created an issue

Hi

Have more trouble on a specific server.

First Biginteger was unable to run because of missing bcmath lib #6

But now it turns out that it also very slow compared to the original server - at least a factor 15. And this server is faster in every other aspect.

Is the any settings etc. that can make it slow or can I test why in other ways.

I can read on the net that it may use different modules to make the calculations. Is there any way to find out what is in use?

/Benny

Comments (4)

  1. simon repo owner

    Please use the many stack exchange sites listed at https://stackexchange.com/sites for questions about php or different server distributions. When you post questions to those sites it is best to do things like list the OS you are using and phpinfo and all the other things about how to raise reports about configuration issues.

  2. Benny Nissen reporter

    I got it working again after I installed GMP

    • sudo apt-get install php7.1-gmp
    • sudo service apache2 restart

    The slow performance was because the OpenSSL libary and header was not the same version

    • OpenSSL Library Version OpenSSL 1.1.0g 2 Nov 2017
    • OpenSSL Header Version OpenSSL 1.1.0f 25 May 2017

    It fails in this function:

    switch (true) {
                case !isset($versions['Header']):
                case !isset($versions['Library']):
                case $versions['Header'] == $versions['Library']:
                    define('MATH_BIGINTEGER_OPENSSL_ENABLED', true);
                    break;
                default:
                    define('MATH_BIGINTEGER_OPENSSL_DISABLE', true);
            }
    

    And falls back to a very slow way of doing things

  3. Log in to comment