Code Monkey home page Code Monkey logo

php4.4's People

Contributors

terrafrost avatar

Watchers

 avatar  avatar

php4.4's Issues

enable OpenSSL

I was able to get PHP to compile with OpenSSL support as can be seen with this commit:

5379da9

...but attempting to use any OpenSSL functions results in a segfault.

Here's what gdb says:

Program terminated with signal 11, Segmentation fault.
#0  0x00007fd3381c5a48 in RSA_public_encrypt () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0

It seems strange that it's trying to use /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 instead of /usr/local/openssl-0.9.8/libcrypto.so.0.9.8. It appears that libcrypto.so.1.0.0 is actually hard-coded in the compiled PHP binary (despite the config options):

strings /usr/local/bin/php | grep "libcrypto.so.1.0.0"

https://museum.php.net/php4/php-4.4.9-Win32.zip has OpenSSL 0.9.8e included. I did try it with that version and the result is the same:

RUN cd /tmp \
    && wget --no-check-certificate http://www.openssl.org/source/openssl-0.9.8e.tar.gz \
    && tar xvfz openssl-0.9.8e.tar.gz \
    && cd openssl-0.9.8e \
    && CFLAGS=-fPIC ./config shared --prefix=/usr/local/openssl-0.9.8 --openssldir=/usr/local/openssl-0.9.8 no-asm \
    && make \
    && make install

I opted to use 0.9.8x (instead of 0.9.8e) because that's what https://www.howtoforge.com/how-to-use-php-4.4.9-fastcgi-with-apache-and-ispconfig-3-debian-wheezy used and 0.9.8x doesn't require the no-asm option, which it seems like could blunt some of the speed of OpenSSL.

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.