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: 2019-07-29 10:14 UTC
From: ogre5000 at gmail dot com Assigned:
Status: Open Package: *Compile Issues
PHP Version: 7.3.7 OS: Debian Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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]
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Nov 17 10:01:32 2019 UTC