Re: run-tests.php and dynamic extension dependencies

From: Date: Sat, 24 Oct 2015 18:20:09 +0000
Subject: Re: run-tests.php and dynamic extension dependencies
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-88933@lists.php.net to get a copy of this message
Hi Derick, I found the reason why tests are failing : the extension(s) added by the 'EXTENSION' section appear *after* the tested extension on the PHP command line. So, they are loaded *after* when they should be loaded *before*. If the dependency between extensions is at the PHP level only, it's OK. But, if it is at the C level (direct C function calls), it fails because loading occurs in a wrong order. I have posted a bug report for this (https://bugs.php.net/bug.php?id=70781) and attached a PR. Give thoughts and, if agreed, we'll ask for a merge, at least in 7.0. Note that the result is not perfect yet because warning messages still appear when displaying the information banner. They can be removed by suppressing the $info_params in write_information() but I didn't include that in the PR because of possible side effects in the displayed information. Anyway, the most important is that the tests run. Regards François

« previous php.internals (#88933) next »