Enabling the module it throws an error:
"To use PHPIDS your webhost must running with PHP 5.1.6 or higher. Your current PHP version: 5.1.6 (In gebruik: PHPIDS Unsupported PHP version found)"

The module can't be activated. Some of the earlier dev's or rc's did accept PHP 5.1.6, although I do not recall which one. The latest 6.x-1.8 throws this error.

Comments

it-cru’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » it-cru
Priority: Normal » Critical

Hello erem,

could you please post the output of phpversion() ?

You could try to replace in phpids.install file

if (version_compare('5.1.6', PHP_VERSION) != -1) {

to

if (version_compare(PHP_VERSION, '5.1.6', '<') {

I hope I could test it today. Sry that the answer take so long :( .. Gos77

erem’s picture

Hi, I was a bit away as well, driving through France and stuff... really enjoyable though.

phpversion() says '5.1.6' allright.

In 6.x-1.8-beta2 changing the line to "if (version_compare(PHP_VERSION, '5.1.6', '<') {" throws a blank page after enabling the module and clicking submit.
From the error log
PHP Parse error: syntax error, unexpected '{' in [path]/sites/all/modules/phpids/phpids.install on line 17

Adding another closing bracket does the trick, the module is enabled. A new package (6.x-1.8) is available, I'll install that one right now.

6.x-1.8 needs the same hack to pass validation.
Cheers, Roel

it-cru’s picture

Hello Roel,

could you please test current dev-snapshot? I've added the fix and need some feedback, if it works now correct with PHP 5.1.6 without the hack. I would be glad to hear from you ;)

greetz Gos77

erem’s picture

The dev 6.x-1.x-dev (2009-aug-19) works fine on 5.1.6. Thx

it-cru’s picture

Hello Roel,

you could also upgrade to version 1.9. It is based on your tested dev-snapshot and so you wouldn't use a development version in your productive environment.

Issue could be closed now.

Greetz Gos77

erem’s picture

Status: Active » Closed (fixed)

phpids 6.x-1.9 works like a charm on PHP 5.1.6, ticket closed.
Thanks again Gos77