shivammathur / php-src-backports Goto Github PK
View Code? Open in Web Editor NEWSecurity backports for EOL versions of PHP.
License: MIT License
Security backports for EOL versions of PHP.
License: MIT License
Describe the bug
Attempt to compile PHP 5.6 on AlmaLinux 9.3 on aarch64 results in this error:
/bin/sh /usr/src/php-5.6/libtool --silent --preserve-dup-deps --mode=compile cc -IZend/ -I/usr/src/php-5.6/Zend/ -DPHP_ATOM_INC -I/usr/src/php-5.6/include -I/usr/src/php-5.6/main -I/usr/src/php-5.6 -I/usr/src/php-5.6/ext/date/lib -I/usr/src/php-5.6/ext/ereg/regex -I/usr/include/libxml2 -I/usr/src/php-5.6/ext/mbstring/oniguruma -I/usr/src/php-5.6/ext/mbstring/libmbfl -I/usr/src/php-5.6/ext/mbstring/libmbfl/mbfl -I/usr/src/php-5.6/ext/sqlite3/libsqlite -I/usr/src/php-5.6/TSRM -I/usr/src/php-5.6/Zend -I/usr/include -g -O2 -fvisibility=hidden -c /usr/src/php-5.6/Zend/zend_operators.c -o Zend/zend_operators.lo
/tmp/ccaqQeJY.s: Assembler messages:
/tmp/ccaqQeJY.s:6629: Error: operand 2 must be an integer register -- `mul x2,v0,v1'
/tmp/ccaqQeJY.s:6630: Error: operand 2 must be an integer register -- `smulh x0,v0,v1'
/tmp/ccaqQeJY.s:7341: Error: operand 2 must be an integer register -- `mul x2,v9,v0'
/tmp/ccaqQeJY.s:7342: Error: operand 2 must be an integer register -- `smulh x1,v9,v0'
/tmp/ccaqQeJY.s:7488: Error: operand 2 must be an integer register -- `mul x2,v0,v0'
/tmp/ccaqQeJY.s:7489: Error: operand 2 must be an integer register -- `smulh x1,v0,v0'
make: *** [Makefile:1633: Zend/zend_operators.lo] Error 1
Version
Operating systems
AlmaLinux 9.3 aarch64
To Reproduce
git checkout 5.6.40
commandCFLAGS="-Wno-implicit-function-declaration"
command./buildconf --force
commanddnf install libxml2-devel bzip2-devel libcurl-devel libpng-devel libicu-devel libmcrypt-devel readline-devel
command)./configure --prefix=/usr/local/php-5.6 --enable-fpm --with-fpm-user=apache --with-fpm-group=apache --with-openssl --with-zlib --with-bz2 --with-curl --enable-exif --with-gd --with-gettext --with-mhash --enable-mbstring --with-mcrypt --with-mysql --with-mysqli --enable-opcache --enable-pcntl --with-pdo-mysql --with-readline --enable-soap --enable-sockets --enable-shmop --enable-sysvmsg --with-pear
commandmake
commandExpected behavior
The output should end with these lines:
Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
clicommand.inc
directorygraphiterator.inc
directorytreeiterator.inc
invertedregexiterator.inc
pharcommand.inc
phar.inc
Build complete.
Don't forget to run 'make test'.
Screenshots/Logs
Additional context
Are you willing to submit a PR?
The problem is already solved in PHP 7.2.0 in php/php-src@8c86792 commit, which needs to be backported. Originally reported in https://bugs.php.net/bug.php?id=70015 .
First of all, you are a hero for doing this voluntary work for us. I salut you, gentleman.
Describe the feature
The embedded Alpine Linux system is great and it would be awesome to have binaries compiled for it on the community branch.
Version
Additional context
I'm interested in php74 with all its mainstream extensions.
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.