|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-08-21 21:38 UTC] cmbecker69 at gmx dot de
Description:
------------
After compiling PHP 5.5.2 on Cygwin[1] all tests
of the accompanying test suite are failing.
This might be related to the shared libraries, which don't seem
to be properly build on Cygwin (.so instead of .dll.a, with a filesize
of less than 1 KB).
[1] $ uname -a
CYGWIN_NT-5.1 RELIANT 1.7.18(0.263/5/3) 2013-04-19 10:39 i686 Cygwin
Test script:
---------------
./configure --enable-opcache=no
make
make test
Expected result:
----------------
The tests succeed.
Actual result:
--------------
All tests fail.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Indeed it is an issue related to the php.ini. When I remove it or disable it for single tests with -n, most tests succeed (I'll send a report about the failing tests to the qa-reports list). According to README.TESTING [Which php.ini is used] it shouldn't matter which php.ini is used. But both php.ini-production as well as php.ini-development cause all tests to fail ("error while loading shared libraries"). However, no errors are reported when running PHP with either of both php.ini files.The test runner reports: INI actual : /usr/local/lib/php.ini More .INIs : When this file is a copy of the shipped php.ini-developement resp. php.ini-production (I tried both), all tests are failing. Through some expermentation I found that the variables_order setting (which is "GPCS" in both php.ini files) is causing the tests to fail. It seems to be necessary that "E" is included on my system. Through further expermentation I found that the environment variable PATH is necessary to successfully run the tests. Adding the following line at the beginning of run-tests.php was sufficient: $_ENV['PATH']=getenv('PATH'); My PATH contains nothing special: /usr/local/bin:/usr/bin/:/cygdrive/c/WINDOWS/system32/:/cygdrive/c/WINDOWS/:/cyg drive/c/WINDOWS/System32/Wbem/