From: Aredridel <are...@nb...> - 2003-02-26 19:35:44
|
On Wed, Feb 26, 2003 at 03:59:54AM -0500, Todd Mokros wrote: > As a quick fix, the following patch seems to work for me. > The only problem would be that the is_a() function requires php >= > 4.2.0. The method_exists function should work with all PHP4 versions, > but is an uglier way to check. The patch might get wrapped by my > mailer, but should be easy patch by hand. May I suggest a "versioncompat.php" that, for example, moves HTTP_POST_VARS to _POST, HTTP_GET_VARS to _GET, if is_a is not defined, defines one (it's trivial to make a function that does the same), and various other things like that. If functions need _GET, one should global it, as it's not autoglobal in < 4.3, but there's no reason not to use the new names. Makes life much easier, and you can write with the current idiom, instead of making new versions backward compatible, you can just write to a nice common denominator. Ari |