Hi!

Monday, September 1, 2003, 1:58:57 PM, you wrote:

>>>>+      
>>>>REGISTER_LONG_CONSTANT("UDM_PARAM_RESULTS_LIMIT",UDM_PARAM_RESULTS_LIMIT,CONST_CS 
>>>>| CONST_PERSISTENT);
>>>>     Shouldn't that be wrapped inside the #if UDM_VERSION_ID >= 30215 .. #endif 
>>>> too??
>>I think this is not nesessary, since constant declarations are local
>>to extension and there is no harm if it is declared for earlier versions.

JT>     But is that constant _defined_ in earlier versions???
JT>     (speaking of UDM_PARAM_RESULTS_LIMIT, in the C side)

No, for earlier version there is no matter if this constant is defined
or not.

Value of this constant is defined in the beginning for all versions:

#define UDM_PARAM_RESULTS_LIMIT         31

so registration of constant will not fail for earlier versions

Mnogosearch extension has functions to determine which version of
mnogosearch library is compiled with PHP and so, users can write their
scripts to make use of this constant if library can deal with it.

-- 
Regards, Sergey aka gluke.

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to