-- Jason Webster <[email protected]> wrote
(on Saturday, 05 September 2009, 04:00 PM -0700):
> I think you'll find the biggest problem is not simply replicating 
> functions, but certain bugs in the eariler versions of PHP for which 
> there are not hacks or workarounds for in some of the framework code now 
> that the minimum requirement has been bumped up.

That's exactly the issue -- that and also usage of some SPL
functionality and new functions not available prior to 5.2.4.

In many cases, the 5.2 specific functionality is actually primarily in
use in the unit testing suite; however, there were some SPL classes we
started to make use of. 

When in doubt, try running the application under 5.1.6 and see what
happens.

Based on the OP's note that upgrading PHP is not an option until
mid-2010, my guess is that the client is using RHEL or CentOS. While
these are great distributions, their policies of not offering updated
PHP versions is problematic considering the length of their long term
support. That said, if you have an official support contract with
RedHat, they have newer versions available. There are also other
commercially supported versions such as Zend Server that can be used,
and provide similar guarantees to the RHEL support contracts.

> On 05/09/2009 7:19 AM, Joshua Beall wrote:
>>
>> Hi All,
>>
>> I've got a client who has their site hosted on a machine with PHP 5.1.6.
>> Unfortunately, upgrading PHP is not an option until sometime in mid-2010.
>> This is beyond my control and there's nothing I can do about it.
>>
>> Zend Framework has an official requirement of PHP 5.2.4 or later.  Am I just
>> out of luck--I can't use any portion of Zend Framework?  Or are their
>> workarounds, such as:
>>
>> 1) Emulating PHP 5.2.4 functionality via function_exists, class_exists, and
>> other methods--i.e., check to see if a PHP 5.2.4 function exists, if not,
>> define it and have it operate in the same fashion as PHP 5.2.4's version of
>> that function exists.
>> 2) Using only some portions of the framework that do not depend on 5.2.4
>> functionality.
>> 3) Some combination of 1) and 2).
>>
>> ???
>>
>>    -Josh
>

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/

Reply via email to