List ImageAPI as compatible with PHP 5.1

webchick - November 20, 2008 - 19:22
Project:ImageAPI
Version:6.x-1.x-dev
Component:Miscellaneous
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

We have a client who's on RedHat Enterprise Linux, which ships with PHP 5.1.6, and isn't eager to upgrade (which would sacrifice their support terms with RedHat).

I noticed that in the Drupal 5 version of this module, there are these lines:

define('IMAGEAPI_MINIMUM_PHP', '5.1');
define('IMAGEAPI_RECOMMENDED_PHP', '5.2');

During the 6.x port, this got translated to php = 5.2 in the .info file.

CVS annotate unfortunately isn't that helpful, as it points me to the following commit message:

"#256687 by drewish, Clean up requirement/install errors.
by dopry, relax php version requirements
by dopry, remove gd version reporting since core does it already."

Unfortunately, the patch attached to #256687: Fix a bunch of warnings with the imageapi_gd.install file doesn't contain any of this.

After hacking the .info file to change it to 5.1, things seem to be working okay.

So how about it? Can we reduce this requirement to 5.1?

#1

aaron - December 4, 2008 - 21:09

We have the identical issue. However, we have problems getting it to work even with the aforementioned .info file hack. I'd assumed there were some function(s) in the new version of PHP, and was about to track that down when I saw this issue.

#2

nrambeck - December 11, 2008 - 14:32

I just ran across this issue as well. Company servers are Redhat Enterprise Linux running PHP 5.1.2. After hacking the .info file to allow for PHP 5.1.x, ImageCache is not working. Any insight into the code/functions requiring 5.2.x would be helpful. Thanks.

#3

nrambeck - December 11, 2008 - 17:36

Actually this now seems to be working fine in PHP 5.1.2 (although I am only using image scaling actions with ImageCache). The problem above stemmed from not having the files directory explicitly set in the File System settings.

I would concur with webchick on reducing the requirement to 5.1 unless there are specific issues developers are aware of.

#4

drewish - December 24, 2008 - 01:49
Status:active» fixed

dopry reported problems in earlier versions but i'm not sure what the they were. since then he and i have only been developing against php 5.2. people are welcome to try it with previous versions but it's unsupported and untested.

#5

System Message - January 7, 2009 - 01:50
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#6

pixelite - April 2, 2009 - 14:13

I'm using ImageAPI in conjunction with GD2 on a few projects and haven't come across any issues with using PHP 5.1. It is kind of a hassle to have to hack the module just to remove the dependency on 5.2.

#7

temmermon - April 3, 2009 - 17:21
Status:closed» active

agreed. This is the same issue as with Filefield and it was changed accordingly. See that discussion: http://drupal.org/node/411560

#8

drewish - April 3, 2009 - 17:44
Category:support request» task

If someone with PHP 5.0 or 5.1 wants to roll a patch and can verify that the module works on that version I'll commit it.

#9

worldcoast - April 6, 2009 - 03:15

working on 5.1.6, really though it's an easy thing to just go into the file and change it to read 5.1

I have no idea how to make a patch file for you =)

#10

suit4 - April 8, 2009 - 16:22

seems to work (with a little code fix) on php 5.0.4 as well

#11

seanr - April 17, 2009 - 16:19
Status:active» needs review

Here's the patch; works fine on my server with PHP 5.1.6

AttachmentSize
imageapi.info.patch 453 bytes

#12

drewish - April 17, 2009 - 18:04
Title:Is PHP 5.2 *really* required?» List ImageAPI as compatible with PHP 5.1
Status:needs review» fixed

looks good to me. committed to DRUPAL-6--1.

#13

System Message - May 1, 2009 - 18:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.