Hi Dmitry,

On Wed, April 23, 2014 14:53, Dmitry Koterov wrote:
>>

>> you talk about compile-time dependency, and Johannes talks about
>> run-time
>>> dependency. something like this:
>>> https://github.com/php/php-src/blob/master/ext/pdo_mysql/pdo_mysql.c#
>>> L225
>>>
>>>
>>>
> One more question about this: after I added ZEND_MOD_REQUIRED, "make
> test" command began to throw out warnings:
>
> PHP Warning:  Cannot load module 'dom_varimport' because required module
> 'dom' is not loaded in Unknown on line 0
>
>
> It executes the following command line (in run-tests.php which is
> generated by phpize, line 265):
>
> /usr/bin/php  -n -c '/root/dom_varimport/tmp-php.ini'  ...  -d
> "extension_dir=/root/dom_varimport/modules/" -d
> "extension=dom_varimport.so" /root/dom_varimport/run-test-info.php
>
>
> Maybe PECL test framework does not support extension dependencies (I am
> worrying about extension_dir redeclaration: if it redeclares
> extension_dir, how does it plan to access "standard" extensions like DOM
> etc.)?
>
You could trick it using something lke this

make test TESTS="-n -d extension_dir=/my/dir -d extension=my.so -d
extension=other.so tests"

Depending on what is better for your concrete case, you could either

- "make install" before doing this or
- copy some missing .so into ./modules

See the full doc to the test commando by

nmake test TESTS=--help

Regards

Anatol

-- 
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to