It looks like there are some issues for PHP4 users. Let's track them here so PHP4 users can use this issue to identify possible problems.

#442768: Replacement pattern [nid] doesn't work on PHP4
#313371: On PHP 4.x evaluation of content type is always FALSE

Just before any speculations come up: Yes, rules 6.x-1.x is PHP4 compatible, however it's not as tested as with PHP5 as most users use already PHP5. Furthermore I have no PHP4 development site where I could track down any bugs, so I need the help of the community here.

Comments

kenorb’s picture

Component: Rules Core » Rules Engine

I'm always using WAMP with PHP5, but on linux server I've got hundred of different website running on PHP4, so I can't upgrade it without completely breaking them.
On my localhost I've tried to install (instead of WAMP) XAMPP (http://www.apachefriends.org/en/xampp.html) on my local, because I've read that it support both version of PHP.

XAMPP (not Lite!) contains both PHP5 and PHP4. To switch between the versions please use the "php-switch.bat" ($path-to-xampp\xampp\php-switch.bat). NOTE: The Apache server must be stopped before you make these changes.

but currently newest version of XAMPP doesn't support PHP4 anymore.
Can any know from where it can be downloaded, the older version (some mirror)?
Or different question: anybody know simple self-installer with both version of PHP?

When I'll be able to install PHP4 and debug it step by step via PhpEd (dbg) to check which line is responsible for that.

guignonv’s picture

As I said on "#313371: On PHP 4.x evaluation of content type is always FALSE", it seems like the rule module, under PHP4, returns every object as the $user object (ie. $node == $node_unchanged == $user).

I got:
PHP 4.3.9
Drupal 6.14
Rule 6.x-1.1

kenorb’s picture

You wanna be 31337, choose #313371 ;)

klausi’s picture

Status: Active » Closed (fixed)

PHP 4 support has been dropped.