php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70781 Extension tests fail on dynamic ext dependency
Submitted: 2015-10-24 17:50 UTC Modified: 2015-11-05 21:25 UTC
From: francois@php.net Assigned:
Status: Closed Package: Testing related
PHP Version: 7.0.0RC5 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: francois@php.net
New email:
PHP Version: OS:

 

 [2015-10-24 17:50 UTC] 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


Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-11-05 21:25 UTC] kalle@php.net
-Status: Open +Status: Verified
 [2015-11-05 21:25 UTC] kalle@php.net
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
 [2015-12-09 10:10 UTC] ab@php.net
Automatic comment on behalf of francois
Revision: http://git.php.net/?p=php-src.git;a=commit;h=25abf2f028171fd89627824ef2c98090a2802361
Log: Fix bug #70781 (Extension tests fail on dynamic ext dependency)
 [2015-12-09 10:10 UTC] ab@php.net
-Status: Verified +Status: Closed
 [2016-07-20 11:34 UTC] davey@php.net
Automatic comment on behalf of francois
Revision: http://git.php.net/?p=php-src.git;a=commit;h=25abf2f028171fd89627824ef2c98090a2802361
Log: Fix bug #70781 (Extension tests fail on dynamic ext dependency)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 12 07:01:28 2024 UTC