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.

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

Reply via email to