php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76494 test-suite partly ignors environment
Submitted: 2018-06-18 18:44 UTC Modified: 2018-06-21 21:50 UTC
From: spam2 at rhsoft dot net Assigned:
Status: Open Package: Testing related
PHP Version: 7.3Git-2018-06-18 (Git) OS: Linux
Private report: No CVE-ID: None
 [2018-06-18 18:44 UTC] spam2 at rhsoft dot net
Description:
------------
hell, there is no point to load anything from /usr/lib64/php/modules
i delete all openssl related tests for the same reason for months

the environment is pretty clear and the whole dance is because "make tests" has nothing better to do than copy /etc/php.ini and reuse it which don't work at all when you build PHP master on a system which is running PHP already

+ export LANG=C TEST_PHP_EXECUTABLE=/home/builduser/rpmbuild/BUILD/php-7.3.0/sapi/cli/php EXTENSION_DIR=/home/builduser/rpmbuild/BUILD/php-7.3.0/modules PHP_INI_SCAN_DIR=/home/builduser/rpmbuild/BUILD/php-7.3.0/modules PHP_INI_PATH=/home/builduser/rpmbuild/BUILD/php-7.3.0/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 GLIBC_TUNABLES=glibc.elision.enable=1
+ LANG=C
+ TEST_PHP_EXECUTABLE=/home/builduser/rpmbuild/BUILD/php-7.3.0/sapi/cli/php
+ EXTENSION_DIR=/home/builduser/rpmbuild/BUILD/php-7.3.0/modules
+ PHP_INI_SCAN_DIR=/home/builduser/rpmbuild/BUILD/php-7.3.0/modules
+ PHP_INI_PATH=/home/builduser/rpmbuild/BUILD/php-7.3.0/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
+ GLIBC_TUNABLES=glibc.elision.enable=1
+ cp /home/builduser/rpmbuild/SOURCES/php-debug.ini /home/builduser/rpmbuild/BUILD/php-7.3.0/tmp-php.ini
+ sed -i s@__EXTENSION_DIR__@/home/builduser/rpmbuild/BUILD/php-7.3.0/modules@ /home/builduser/rpmbuild/BUILD/php-7.3.0/tmp-php.ini
+ /home/builduser/rpmbuild/BUILD/php-7.3.0/sapi/cli/php -n -c /home/builduser/rpmbuild/BUILD/php-7.3.0/tmp-php.ini /home/builduser/rpmbuild/BUILD/php-7.3.0/run-tests.php -n -c /home/builduser/rpmbuild/BUILD/php-7.3.0/tmp-php.ini

[18-Jun-2018 17:52:26 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
[18-Jun-2018 17:52:26 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: _array_init), /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
[18-Jun-2018 17:52:13 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
[18-Jun-2018 17:52:13 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: _array_init), /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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-06-21 11:49 UTC] spam2 at rhsoft dot net
NOTE: this only affects master (besides openssl built shared)

see below below configure, call and the "tmp-php.ini" which is supposed to be used - some test *for sure* use /etc/php.ini because the errors are visible in the hosts error_log defined there which is a non-default path

+ ./configure --quiet --host=x86_64-redhat-linux --build=x86_64-redhat-linux --target=x86_64-redhat-linux --prefix=/usr --program-prefix= --libdir=/usr/lib64/php --disable-all --disable-static --enable-shared --enable-apcu=shared --enable-bcmath=shared --enable-calendar=shared --enable-cli --enable-ctype=shared --enable-dom=shared --enable-exif=shared --enable-fileinfo=shared --enable-filter --enable-gcc-global-regs --enable-hash=shared --enable-huge-code-pages --enable-inline-optimization --enable-intl=shared --enable-json=shared --enable-libxml --enable-mbregex --enable-mbstring=shared --enable-mysqlnd=shared --enable-opcache=shared --enable-pcntl=shared --enable-pdo=shared --enable-phar=shared --enable-posix=shared --enable-re2c-cgoto --enable-session=shared --enable-simplexml=shared --enable-soap=shared --enable-sockets=shared --enable-tokenizer=shared --enable-xml=shared --enable-xmlreader=shared --enable-xmlwriter=shared --enable-zip=shared --with-apxs2=/usr/bin/apxs --with-bz2=shared,/usr --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.lounge.d --with-curl=shared,/usr --with-freetype-dir=/usr --with-gd=shared,/usr --with-iconv=shared --with-imap-ssl=/usr --with-imap=shared,/usr --with-kerberos=/usr --with-layout=GNU --with-libdir=lib64 --with-libedit=shared,/usr --with-libxml-dir=/usr --with-libzip=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=shared,mysqlnd --with-openssl=shared,/usr --with-pcre-jit --with-pcre-regex=/usr --with-pdo-mysql=shared,mysqlnd --with-pic --with-system-ciphers --with-system-tzdata --with-tidy=shared,/usr --with-zlib-dir=/usr --with-zlib=shared --disable-cgi --disable-dmalloc --disable-dtrace --disable-gcov --disable-gd-jis-conv --disable-ipv6 --disable-mysqlnd-compression-support --disable-opcache-file --disable-phpdbg --disable-rpath --disable-short-tags --disable-debug --without-valgrind --without-pcre-valgrind --disable-valgrind-checks
Updated main/php_version.h

+ sed -i s@__EXTENSION_DIR__@/home/builduser/rpmbuild/BUILD/php-7.3.0/modules@ /home/builduser/rpmbuild/BUILD/php-7.3.0/tmp-php.ini
+ /home/builduser/rpmbuild/BUILD/php-7.3.0/sapi/cli/php -n -c /home/builduser/rpmbuild/BUILD/php-7.3.0/tmp-php.ini /home/builduser/rpmbuild/BUILD/php-7.3.0/run-tests.php -n -c /home/builduser/rpmbuild/BUILD/php-7.3.0/tmp-php.ini
=====================================================================
PHP         : /home/builduser/rpmbuild/BUILD/php-7.3.0/sapi/cli/php 
PHP_SAPI    : cli
PHP_VERSION : 7.3.0-thelounge-sandybridge
ZEND_VERSION: 3.3.0-dev
PHP_OS      : Linux - Linux testserver.rhsoft.net 4.17.2-200.fc28.x86_64 #1 SMP Mon Jun 18 20:09:31 UTC 2018 x86_64
INI actual  : /home/builduser/rpmbuild/BUILD/php-7.3.0/tmp-php.ini
More .INIs  :   
CWD         : /home/builduser/rpmbuild/BUILD/php-7.3.0
Extra dirs  : 
VALGRIND    : Not used
=====================================================================
[root@testserver:~]$ cat /home/builduser/rpmbuild/BUILD/php-7.3.0/tmp-php.ini
[PHP]
max_input_time                   = "-1"
memory_limit                     = "-1"
max_execution_time               = 0
report_memleaks                  = 1
extension_dir                    = "/home/builduser/rpmbuild/BUILD/php-7.3.0/modules"
extension                        = "zlib"
extension                        = "openssl"
extension                        = "mbstring"
extension                        = "bz2"
extension                        = "calendar"
extension                        = "ctype"
extension                        = "curl"
extension                        = "dom"
extension                        = "exif"
extension                        = "fileinfo"
extension                        = "gd"
extension                        = "hash"
extension                        = "iconv"
extension                        = "imap"
extension                        = "intl"
extension                        = "json"
extension                        = "mysqlnd"
extension                        = "mysqli"
extension                        = "pcntl"
extension                        = "pdo"
extension                        = "pdo_mysql"
extension                        = "phar"
extension                        = "posix"
extension                        = "readline"
extension                        = "session"
extension                        = "simplexml"
extension                        = "soap"
extension                        = "sockets"
extension                        = "tidy"
extension                        = "tokenizer"
extension                        = "xml"
extension                        = "xmlreader"
extension                        = "xmlwriter"
extension                        = "zip"
extension                        = "apcu"
apc.enable_cli                   = 1
apc.use_request_time             = 0
apc.gc_ttl                       = 600
apc.shm_size                     = 64M
apc.entries_hint                 = 10000
[zend]
zend_extension                   = "opcache"
opcache.enable                   = 1
opcache.enable_cli               = 1
opcache.load_comments            = 0
opcache.save_comments            = 0
opcache.use_cwd                  = 1
opcache.validate_timestamps      = 1
opcache.validate_permission      = 0
opcache.revalidate_freq          = 1
opcache.revalidate_path          = 0
opcache.max_accelerated_files    = 1000
opcache.memory_consumption       = 32
opcache.interned_strings_buffer  = 8
opcache.max_file_size            = 327680
opcache.enable_file_override     = 1
opcache.fast_shutdown            = 1
opcache.log_verbosity_level      = 1
opcache.huge_code_pages          = 1
 [2018-06-21 21:50 UTC] cmb@php.net
-PHP Version: master-Git-2018-06-18 (Git) +PHP Version: 7.3Git-2018-06-18 (Git)
 [2018-06-21 21:50 UTC] cmb@php.net
> NOTE: this only affects master (besides openssl built shared)

The latter issue is tracked in another ticket, if I remember
correctly.  Changing the version, to better keep track of this
regression.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 13 19:01:30 2024 UTC