Bug #70781 [Opn->Ver]: Extension tests fail on dynamic ext dependency
| From: | kalle@php.net | Date: | Thu, 05 Nov 2015 21:25:05 +0000 |
| Subject: | Bug #70781 [Opn->Ver]: Extension tests fail on dynamic ext dependency | ||
| References: | 1 | Groups: | php.bugs php.qa |
| Request: | Send a blank email to php-bugs+get-197060@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70781&edit=1
ID: 70781
Updated by: kalle@php.net
Reported by: francois@php.net
Summary: Extension tests fail on dynamic ext dependency
-Status: Open
+Status: Verified
Type: Bug
Package: Testing related
Operating System: Linux
PHP Version: 7.0.0RC5
Block user comment: N
Private report: N
New Comment:
I think this should go into 7.0.1 as well as the 5.x series, so green light from me for the first
7.0 patch release
Previous Comments:
------------------------------------------------------------------------
[2015-10-24 17:50:24] francois@php.net
Description:
------------
This is related to the patch introduced by Derick in 2011 (see http://grokbase.com/t/php/php-internals/11bwptaj78/run-tests-php-and-dynamic-extension-dependencies).
The patch works well if dependency occurs at the PHP level. But, if there is a C-level dependency (C
function call), it doesn't work because the tested extension is loaded *before* the extension
it depends on (causing an 'Undefined symbol error).
Test script:
---------------
Clone PCS extension from https://github.com/flaupretre/pecl-pcs.
Compile and install PCS
go to the examples/example1 subdirectory. This is an example extension depending on PCS.
phpize && ./configure && make
make test -> fail, every tests are skipped
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70781&edit=1