php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78339 make: *** [ext/phar/phar.phar] Ungültiger Maschinenbefehl
Submitted: 2019-07-28 10:18 UTC Modified: 2020-06-21 04:22 UTC
From: ogre5000 at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: *Compile Issues
PHP Version: 7.3.7 OS: Debian Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ogre5000 at gmail dot com
New email:
PHP Version: OS:

 

 [2019-07-28 10:18 UTC] ogre5000 at gmail dot com
Description:
------------
I install PHP on Debian GNU/Linux 6.0 (Kernel 2.6.39.1) by configure command as submitted below.
This works well for all versions (eg. php-5.6.40, php-7.2.20) until php-7.3.0 (and all versions above 7,3,0, eg. 7.3.7), which gives the result as below: "make: *** [ext/phar/phar.phar] Ungültiger Maschinenbefehl", instead of "Build complete. Don't forget to run 'make test'."

Test script:
---------------
rm config.cache
make clean
./configure -prefix=/usr/local/php/latestversion \
--with-libxml-dir=/usr/ \
-with-zlib-dir=/usr/ \
--with-mysqli \
--with-png-dir=/usr/ \
--with-jpeg-dir=/usr/ \
--with-curl=/usr/local \
-enable-soap \
-enable-sockets \
-enable-mbstring \
--with-gd \
--with-freetype-dir \
--with-mhash=/usr/ \
--enable-exif \
--enable-intl \
--with-openssl=/usr/local \
--with-apxs2=/usr/local/apache2/bin/apxs
make

Expected result:
----------------
/bin/bash /opt/php/php-7.2.20/libtool --silent --preserve-dup-deps --mode=link /opt/php/php-7.2.20/meta_ccld -export-dynamic -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS -DZEND_SIGNALS ................................ -lcrypt -lxml2 -lxml2 -lxml2 -lcrypt  -o sapi/cgi/php-cgi
Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
pharcommand.inc
directorygraphiterator.inc
clicommand.inc
directorytreeiterator.inc
invertedregexiterator.inc
phar.inc

Build complete.
Don't forget to run 'make test'

Actual result:
--------------
/bin/bash /opt/php/php-7.3.0/libtool --silent --preserve-dup-deps --mode=link cc -export-dynamic -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS -DZEND_SIGNALS ................................ -lcrypt -lxml2 -lxml2 -lxml2 -lcrypt  -o sapi/cgi/php-cgi
Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
make: *** [ext/phar/phar.phar] Ungültiger Maschinenbefehl

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-07-29 10:14 UTC] nikic@php.net
Can you run `sapi/cli/php run-tests.php -P ext/standard/tests/strings` and report the results?

Preferably not on 7.3.0, as early 7.3 versions have known issues that could have caused this.
 [2019-08-03 10:20 UTC] ogre5000 at gmail dot com
Here is the result of this command:

root@SERVERNAME:/opt/php/php-7.3.7# sapi/cli/php run-tests.php -P ext/standard/tests/strings

=====================================================================
PHP         : /opt/php/php-7.3.7/sapi/cli/php 
PHP_SAPI    : cli
PHP_VERSION : 7.3.7
ZEND_VERSION: 3.3.7
PHP_OS      : Linux - Linux SERVERNAME 2.6.39.1-cobalt #2 Sun Oct 28 13:06:59 CET 2012 i686
INI actual  : /opt/php/php-7.3.7
More .INIs  :   
---------------------------------------------------------------------
PHP         : /opt/php/php-7.3.7/sapi/phpdbg/phpdbg 
PHP_SAPI    : phpdbg
PHP_VERSION : 7.3.7
ZEND_VERSION: 3.3.7
PHP_OS      : Linux - Linux SERVERNAME 2.6.39.1-cobalt #2 Sun Oct 28 13:06:59 CET 2012 i686
INI actual  : /opt/php/php-7.3.7
More .INIs  : 
---------------------------------------------------------------------
CWD         : /opt/php/php-7.3.7
Extra dirs  : 
VALGRIND    : Not used
=====================================================================
Running selected tests.
Ungültiger Maschinenbefehlests/strings/004.phpt]
 [2020-06-12 13:02 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-06-12 13:02 UTC] cmb@php.net
> I install PHP on Debian GNU/Linux 6.0 […]

Even LTS support for Debian 6.0 ended on 2016-02-29.  Why would
you want to use such an old system with a recent PHP version?
 [2020-06-21 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC