Re: Extension proposal: dom_varimport
| From: | Anatol Belski | Date: | Wed, 23 Apr 2014 13:12:19 +0000 |
| Subject: | Re: Extension proposal: dom_varimport | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-11770@lists.php.net to get a copy of this message | ||
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#9Çh
>>> É$–ïˆSšuLW
>>> 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