Re: [phplib-users] PHP 5.2 and PHPlib
Brought to you by:
nhruby,
richardarcher
From: Frank B. <fb...@sy...> - 2008-08-22 17:52:44
|
Layne Weathers wrote: >> Hi all, >> >> whoever might be out there... >> >> I just downloaded Richard Archer's version 7.4a from the >> internet. Then remembering that I would find phplib's source >> also on SourceForge... >> >> Anyway, having checked its bugtracker I verified that phplib is >> full of HTTP_POST_VARS and similar things. That's just >> frightening now that I wanted to port my application to PHP5 >> where these VARs don't exist anymore. > > > Marko, > > I don't know about Richard's release - AFAIK the best, most > up-to-date is using the php-lib-stable repository branch. In > January 2007, I committed changes that only used the HTTP_*_VARS > form when the superglobals were not present - you might want to > double-check the source code to see if this is the case. E.g. > session.inc, lines 92-98: > if (!isset($_POST)) { > global $HTTP_COOKIE_VARS, $HTTP_GET_VARS, > $HTTP_POST_VARS, $HTTP_SERVER_VARS; > $_COOKIE = $HTTP_COOKIE_VARS; > $_POST = $HTTP_POST_VARS; > $_GET = $HTTP_GET_VARS; > $_SERVER = $HTTP_SERVER_VARS; > } > > This pattern allowed for backwards compatibility (pre-4.1) and > allows you to run without the long vars arrays support. > I'm wondering if 7.2b is warranted; that includes those changes? I'm almost completed complete removal of phplib from my apps; but I've often wondered why there was never a release after those Jan.2007 changes. |