terrafrost / php4.4 Goto Github PK
View Code? Open in Web Editor NEWPHP 4.4 Docker container
License: MIT License
PHP 4.4 Docker container
License: MIT License
I was able to get PHP to compile with OpenSSL support as can be seen with this commit:
...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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.