Bug #55479 [Com]: ext/pcntl/tests failures
| From: | qing0088 at hotmail dot com | Date: | Mon, 29 Aug 2011 08:33:30 +0000 |
| Subject: | Bug #55479 [Com]: ext/pcntl/tests failures | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163086@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55479&edit=1
ID: 55479
Comment by: qing0088 at hotmail dot com
Reported by: glen at delfi dot ee
Summary: ext/pcntl/tests failures
Status: Open
Type: Bug
Package: PCNTL related
PHP Version: 5.4.0alpha3
Block user comment: N
Private report: N
New Comment:
http://www.nflbengalssite.com/cincinnati-bengals-jerseys-rey-maualuga-jersey-c-9_12.html Rey
Maualuga Jersey Authentic
http://www.nflbengalssite.com/cincinnati-bengals-jerseys-terrell-owens-jersey-c-9_15.html Terrell
Owens Jersey Authentic
http://www.officialbuffalobillsshop.com/aaron-maybin-jersey-c-13_23.html Aaron
Maybin Jersey
Previous Comments:
------------------------------------------------------------------------
[2011-08-27 14:42:56] glen at delfi dot ee
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
------------------------------------------------------------------------
[2011-08-27 14:37:43] glen at delfi dot ee
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.
------------------------------------------------------------------------
[2011-08-26 15:22:04] kalle@php.net
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.
------------------------------------------------------------------------
[2011-08-22 17:05:56] glen at delfi dot ee
proposed patch:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php/bug-test-pcntl-
55479.patch
------------------------------------------------------------------------
[2011-08-22 17:03:56] glen at delfi dot ee
Description:
------------
there are ext/pcntl/tests failures due it using $TEST_PHP_EXECUTABLE which uses
installed php
config, but tests should be self-contained and use config extensions from BUILT
codebase.
for example if i have installed php 5.3 and i try to run tests on 5.4 i get
errors:
+ /usr/bin/make -j16 test EXTENSION_DIR=modules
PHP_TEST_SHARED_SYSTEM_EXTENSIONS=
RUN_TESTS_SETTINGS=-q ext/pcntl/tests/pcntl_exec_2.phpt --show-out
Build complete.
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
ZEND_VERSION: 2.4.0
PHP_OS : Linux - Linux carme-pld-i686 3.0.0_nogrsecurity-0.3 #1 SMP Wed Jul
27 21:17:15 CEST
2011 i686
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]
========OUT========
ok
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
0
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php/session.so' -
/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
....
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55479&edit=1