go to bug id or search bugs for
there are ext/pcntl/tests failures due it using $TEST_PHP_EXECUTABLE which uses
config, but tests should be self-contained and use config extensions from BUILT
for example if i have installed php 5.3 and i try to run tests on 5.4 i get
+ /usr/bin/make -j16 test EXTENSION_DIR=modules
RUN_TESTS_SETTINGS=-q ext/pcntl/tests/pcntl_exec_2.phpt --show-out
Don't forget to run 'make test'.
PHP : /home/users/glen/rpm/BUILD.i686-linux/php-5.4.0alpha3/sapi/cli/php
PHP_SAPI : cli
PHP_VERSION : 5.4.0alpha3
PHP_OS : Linux - Linux carme-pld-i686 3.0.0_nogrsecurity-0.3 #1 SMP Wed Jul
27 21:17:15 CEST
INI actual : /home/users/glen/rpm/BUILD.i686-linux/php-5.4.0alpha3/tmp-php.ini
More .INIs :
CWD : /home/users/glen/rpm/BUILD.i686-linux/php-5.4.0alpha3
Extra dirs :
VALGRIND : Not used
Running selected tests.
TEST 1/1 [ext/pcntl/tests/pcntl_exec_2.phpt]
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/pcre.so'
/usr/lib/php/pcre.so: undefined symbol: php_addslashes_ex in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/spl.so'
/usr/lib/php/spl.so: undefined symbol: php_pcre_replace_impl in Unknown on line
PHP Warning: PHP Startup: Unable to load dynamic library
/usr/lib/php/session.so: undefined symbol: php_get_output_start_filename in
Unknown on line 0
PHP Warning: PHP Startup: bcmath: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
Add a Patch
Add a Pull Request
From the trace it looks like you are using some old dynamically linked libraries thats compiled to a different version that the one you are using (see the APINO).
Packages like PCRE and SPL should be statically compiled anyway, although I don't reckon we have any issues using dynamically loaded ones.
err, i know all that
the bug is that "make test" is using modules from to-be-installed path, where
could be installed other version of php
so the patch is to enforce currently built version of php config and modules of
php-cli that is invoked from tests itself
"make test" itself already does the php invocation properly, but invoking
$PHP_TEST_EXECUTABLE from tests should do the same.
i've included patch for two tests i saw failing. i would proceed in other exts
if i see interest in that.
is it clear what i'm saying here? maybe just look at the patch as patch says
more than i'm able to explain.
i.e to be independant of php version installed in system while running tests, the
following args need to be told when invoking php cli inside each .phpt:
$args = array("-n", "-d$extension_dir", "-c$inipath", ...);
where $extension_dir is ./modules and $inipath ./php-temp.ini, without doing so
it would read /usr/lib/php for $extension_dir and /etc/php/php.ini for $inipath
That seems like a bad workaround which would need to be repeated in many places.
run-tests maybe could export an environment variable which contained proper
i wouldn't call it workaround, but rather "changes needed to get tests run
standalone, i.e independant what is installed in system", which is important to
get tests run unaffected by environment details
i agree, that support from run-tests.php side would make tests simplier. would it
be needed to document the interface somewhere?
should i try to make such patch?
so, you ask people to submit qa reports for testing, and then you don't even accept the patches!