php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76821 wrong phar.so loaded
Submitted: 2018-08-30 17:47 UTC Modified: -
From: spam2 at rhsoft dot net Assigned:
Status: Open Package: Testing related
PHP Version: 7.3Git-2018-08-30 (Git) OS: Linux
Private report: No CVE-ID: None
 [2018-08-30 17:47 UTC] spam2 at rhsoft dot net
Description:
------------
WTF - the next extension which now loads stuff from /usr/lib64/php/modules instead respect $TEST_PHP_EXECUTABLE -n -c $PWD/tmp-php.ini $PWD/run-tests.php -n -c $PWD/tmp-php.ini

export LANG="C" TEST_PHP_EXECUTABLE="$PWD/sapi/cli/php" EXTENSION_DIR="$PWD/modules" PHP_INI_SCAN_DIR="$PWD/modules" PHP_INI_PATH="$PWD/tmp-php.ini" NO_INTERACTION=1 MALLOC_CHECK_=2 MYSQL_TEST_HOST="localhost" MYSQL_TEST_SOCKET="/var/lib/mysql/mysql.sock" MYSQL_TEST_PORT="3306" MYSQL_TEST_USER="php_autotest" MYSQL_TEST_PASSWD="php_autotest" MYSQL_TEST_DB="php_autotest" PDO_MYSQL_TEST_DSN="mysql:host=localhost;dbname=php_autotest" PDO_MYSQL_TEST_SOCKET="/var/lib/mysql/mysql.sock" PDO_MYSQL_TEST_USER="php_autotest" PDO_MYSQL_TEST_PASS="php_autotest" PDO_MYSQL_TEST_ENGINE="MyISAM" REPORT_EXIT_STATUS="0" GLI


[root@testserver:~]$ cat php_error.log
[30-Aug-2018 17:31:43 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'phar.so' (tried: /usr/lib64/php/modules/phar.so (/usr/lib64/php/modules/phar.so: undefined symbol: _zend_hash_str_add), /usr/lib64/php/modules/phar.so.so (/usr/lib64/php/modules/phar.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[30-Aug-2018 17:31:43 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'readline.so' (tried: /usr/lib64/php/modules/readline.so (/usr/lib64/php/modules/readline.so: undefined symbol: _array_init), /usr/lib64/php/modules/readline.so.so (/usr/lib64/php/modules/readline.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[30-Aug-2018 17:31:57 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'phar.so' (tried: /usr/lib64/php/modules/phar.so (/usr/lib64/php/modules/phar.so: undefined symbol: _zend_hash_str_add), /usr/lib64/php/modules/phar.so.so (/usr/lib64/php/modules/phar.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[30-Aug-2018 17:31:57 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'readline.so' (tried: /usr/lib64/php/modules/readline.so (/usr/lib64/php/modules/readline.so: undefined symbol: _array_init), /usr/lib64/php/modules/readline.so.so (/usr/lib64/php/modules/readline.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0



Expected result:
----------------
a clean running test

Actual result:
--------------
Number of tests : 14374 12955
Tests skipped : 1419 ( 9.9%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 51 ( 0.4%) ( 0.4%)
Expected fail : 0 ( 0.0%) ( 0.0%)
Tests passed : 12904 ( 89.8%) ( 99.6%)
---------------------------------------------------------------------
Time taken : 968 seconds
=====================================================================
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Phar: opendir test, root directory [ext/phar/tests/018.phpt]
Phar: opendir test, subdirectory [ext/phar/tests/019.phpt]
Phar: opendir test, recurse into [ext/phar/tests/019b.phpt]
Phar: opendir test, recurse into [ext/phar/tests/019c.phpt]
Phar: url stat [ext/phar/tests/020.phpt]
Phar: phar:// opendir [ext/phar/tests/027.phpt]
Phar::chmod [ext/phar/tests/033.phpt]
Phar: Bug #46060: addEmptyDir() breaks [ext/phar/tests/bug46060.phpt]
Phar: copy-on-write test 18 [cache_list] [ext/phar/tests/cache_list/copyonwrite18.phar.phpt]
Phar: copy-on-write test 2 [cache_list] [ext/phar/tests/cache_list/copyonwrite2.phar.phpt]
Phar: copy-on-write test 25 [cache_list] [ext/phar/tests/cache_list/copyonwrite25.phar.phpt]
Phar: copy-on-write test 3 [cache_list] [ext/phar/tests/cache_list/copyonwrite3.phar.phpt]
Phar: copy-on-write test 4 [cache_list] [ext/phar/tests/cache_list/copyonwrite4.phar.phpt]
Phar: copy-on-write test 4a [cache_list] [ext/phar/tests/cache_list/copyonwrite4a.phpt]
Phar: copy-on-write test 7 [cache_list] [ext/phar/tests/cache_list/copyonwrite7.phar.phpt]
Phar: phar.cache_list basic read test [ext/phar/tests/cached_manifest_1.phpt]
Phar: mkdir/rmdir test [ext/phar/tests/dir.phpt]
Phar: test file_get_contents() interception [ext/phar/tests/file_get_contents.phpt]
Phar: test fopen() interception [ext/phar/tests/fopen.phpt]
Phar: include_path with phar:// wrapper [ext/phar/tests/include_path.phpt]
Phar: include_path advanced code coverage test [ext/phar/tests/include_path_advanced.phpt]
Phar: mounted manifest directory test [ext/phar/tests/mounteddir.phpt]
Phar: test opendir() interception [ext/phar/tests/opendir.phpt]
Phar: test edge cases of opendir() function interception [ext/phar/tests/opendir_edgecases.phpt]
Phar object: iterate test with sub-directories and RecursiveIteratorIterator [ext/phar/tests/phar_dir_iterate.phpt]
Phar: gzipped phar [ext/phar/tests/phar_gzip.phpt]
Phar: include/fopen magic [ext/phar/tests/phar_magic.phpt]
Phar: Phar::mount [ext/phar/tests/phar_mount.phpt]
Phar object: iterator & entries [ext/phar/tests/phar_oo_002.phpt]
Phar object: entry & openFile() [ext/phar/tests/phar_oo_003.phpt]
Phar and DirectoryIterator [ext/phar/tests/phar_oo_004.phpt]
Phar::isWriteable [ext/phar/tests/phar_oo_iswriteable.phpt]
Phar: PharFileInfo::chmod extra code coverage [ext/phar/tests/pharfileinfo_chmod.phpt]
Phar: test readfile() interception [ext/phar/tests/readfile.phpt]
Phar: rename_dir and mount test [ext/phar/tests/rename_dir_and_mount.phpt]
Phar: test stat function interceptions [ext/phar/tests/stat.phpt]
Phar::chmod tar-based [ext/phar/tests/tar/033.phpt]
Phar: test that creation of tar-based phar generates valid tar with all bells/whistles [ext/phar/tests/tar/all.phpt]
Bug #49910: no support for ././@LongLink for long filenames in phar tar support [ext/phar/tests/tar/bug49910.phpt]
Phar: mkdir/rmdir test tar-based [ext/phar/tests/tar/dir.phpt]
Phar: include/fopen magic tar-based [ext/phar/tests/tar/phar_magic.phpt]
Phar: tar-based phar, valid 1 [ext/phar/tests/tar/tar_003.phpt]
Phar: phar run with ext/phar with default stub [ext/phar/tests/withphar.phpt]
Phar: test broken app [ext/phar/tests/zf_test.phpt]
Phar::chmod zip-based [ext/phar/tests/zip/033.phpt]
Phar: test that creation of zip-based phar generates valid zip with all bells/whistles [ext/phar/tests/zip/all.phpt]
Phar: mkdir/rmdir test zip-based [ext/phar/tests/zip/dir.phpt]
Phar: test a zip archive created by openoffice [ext/phar/tests/zip/odt.phpt]
Phar: include/fopen magic zip-based [ext/phar/tests/zip/phar_magic.phpt]
Phar: test a zip archive created by unix "zip" command [ext/phar/tests/zip/unixzip.p

Patches

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 04 08:01:29 2024 UTC