[development] Coding Standards / Hook_requirements
Larry Garfield
larry at garfieldtech.com
Mon May 19 18:42:52 UTC 2008
php=5.0 should work, I think. It's validated using
http://us.php.net/manual/en/function.version-compare.php
So whatever works according to that should be acceptable.
--Larry Garfield
On Mon, 19 May 2008 08:47:09 -0600, "John Fiala" <jcfiala at gmail.com> wrote:
> Hmm. In my module.info file, I've got "php = 5.0" - does that need to
> be changed to "php = 5"?
>
> And I'd never heard of hook_requirements before - let me go have a look at
> it.
>
>
> On Mon, May 19, 2008 at 7:54 AM, Larry Garfield <larry at garfieldtech.com>
> wrote:
>> On Monday 19 May 2008, Gábor Hojtsy wrote:
>>
>>> Drupal 6+ modules can depend on PHP 5 with their .info file (I think
>>> "php = 5.x"), so there is no need for actual coding.
>>
>> Correct, although the actual format is php=5 to indicate any PHP 5
> version,
>> php=5.1 to indicate a 5.1.x minimum, php=5.2.3 to indicate a PHP 5.2.3
>> minimum, etc. As of Drupal 6, modules really should be using that if
> they
>> have a version requirement. (As should themes.)
More information about the development
mailing list