Quantcast
Channel: Serverphorums.com
Viewing all articles
Browse latest Browse all 23908

[PHP-DEV] Re: run-tests.php and dynamic extension dependencies

$
0
0
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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Viewing all articles
Browse latest Browse all 23908

Trending Articles