Closed (fixed)
Project:
Privatemsg
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
17 Feb 2010 at 07:19 UTC
Updated:
4 Mar 2010 at 18:20 UTC
Jump to comment: Most recent file
I have php version 4.3.9 and i have install privatemsg module on my site. After install module i no have access to site in httpd logs i see:
PHP Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /home/www/docs/includes/database.inc on line 213, ...
How i can fix this?
I fond this node - http://drupal.org/node/647328
But in my version i have allready this patch :)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | pm_block_user_php4_compat.patch | 1.71 KB | berdir |
Comments
Comment #1
berdirNow, php 4.3.9 is *really* old. I would assume you are using an old enterprise level linux (SLES/RHEL/CentOS) but still, this is old. So if there is any chance, I would urge you to upgrade PHP.
Did you also upgrade Drupal? Since that's very basic code that's not only used in Privatemsg but all over the place.
See #586468-4: Code uses a constant that is not defined in all version of PHP after version 4.3.5 for a possible workaround.
Comment #2
Mascher commentedWhat the hug :)
See on drupal System requirements - http://drupal.org/requirements
Required: PHP version 4.3.5 or higher
You have "System requirements" for Privatemsg module?
And other...
Bug with PHP_INT_MAX fixed ( http://drupal.org/node/586468#comment-2250312 ) with next code pasted into the top of database.inc:
And... If I fix bug with PHP_INT_MAX error, I have next error in pm_block_user module:
What about that? :)
Comment #3
berdirYeah, I know the Drupal system requirements. And I'm sure you've seen the "(Contributed modules may not support this version of PHP)" :)
Anyway, we *try* to support PHP 4 but I don't have a PHP 4 (nor Mysql 4, for that matter) test environment, so I can't guarantee for it.
Try the attached patch, that should fix the issue but I haven't tested it yet.
Also, this shows how many still use PHP 4. Not so much :)
Comment #4
berdirComment #5
Mascher commentedPatch work ok :)
Thank You!
I test module for full functionality on my system :)
Comment #6
berdirDon't set this to closed, we want to have this commited and fixed, don't we ? :)
Comment #7
Mascher commentedOk! If i have found bug, i report here :) I Like this module.
Comment #8
berdirChanging the version (needed for testing the patch)
Comment #10
berdir#3: pm_block_user_php4_compat.patch queued for re-testing.
Comment #11
berdirCommited to branches 6.x-1.x and 6.x-2.x, thanks for reporting and testing!