with current 7.2 HEAD runnign the tests in context of rpmbuild triggers the warnings in the global errorlog - frankly there is no point loading something from the system when with "-n -c" a explicit config which also speficifes the extension_dir is given "/usr/lib64/php/modules/phar.so" is not from the build but form the installed 7.1.9-dev

because of similar errors i am deleting the openssl tests completly for some months now because something tries to load them twice or also from the system instead the supplied config while the "php.ini" stes the extension_dir and also lists all extension explicitly with "extension=name.so"

how can it be that 12000 tests obviously are just fine and random ones again and agin have their own picture what configuration and what/if extensions have to be loaded?

ulimit -s 32712
unset TZ LANG LC_ALL
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"
cp %{SOURCE5} "$PWD/tmp-php.ini" > /dev/null
sed -i "s@__EXTENSION_DIR__@$EXTENSION_DIR@" "$PWD/tmp-php.ini"
$TEST_PHP_EXECUTABLE -n -c $PWD/tmp-php.ini $PWD/run-tests.php -n -c $PWD/tmp-php.ini

in Unknown on line 0
These options need to match
PHP    compiled with module API=20170718
Module compiled with module API=20160303
[02-Aug-2017 13:02:57 UTC] PHP Warning: PHP Startup: readline: Unable to initialize module [02-Aug-2017 13:02: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: spl_ce_Countable), /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
 in Unknown on line 0
These options need to match
PHP    compiled with module API=20170718
Module compiled with module API=20160303
[02-Aug-2017 13:02:48 UTC] PHP Warning: PHP Startup: readline: Unable to initialize module [02-Aug-2017 13:02:48 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: spl_ce_Countable), /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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to