Re: [phplib] phplib 4 From: Thomas T. Thai (tom <email protected>)
Date: 02/21/01

On Tue, 20 Feb 2001, Maxim Derkachev wrote:

> Date: Tue, 20 Feb 2001 11:30:46 +0300
> From: Maxim Derkachev <kot <email protected>>
> To: Thomas T. Thai <tom <email protected>>
> Cc: phplib <email protected>
> Subject: Re: [phplib] phplib 4
>
> Hello Thomas,
>
> Tuesday, February 20, 2001, 6:24:21 AM, you wrote:
>
> TTT> i'm browsing through the cvs directory of phplib. i'm planning on using
> TTT> phplib for an open source project that will need to support php 3 and
> TTT> 4. however, there are php 4 related file scattered in
>
> TTT> phplib/php
> TTT> phplib/php/session
> TTT> phplib/php/phplib-4
>
> Indeed, there are 3 (at least in the current PHPLib CVS) efforts
> currently. The first was Teo's class, it is in the
> php/session/session4.inc. The second was Brian's - that's all the
> stuff in phplib-4. The both use native php4 sessions with native
> storage - mm and files session storage modules.
> The third was mine - it's in the php/session/session4_custom.inc.
> I rewrote some code there (while haven't changed the API) to let
> people use not only native php4 storage containers, but also PHPLib's
> CT_* storage containers (mysql, etc.).
> The differences between this class and the PHPLib 7.2's Session
> are covered in a README_session4_custom in the php/session directory.

i see that in prepend.inc:
...
# Load session management class
require($_PHPLIB["libdir"] . "session/session" . $_PHPLIB["version"]

. (($_PHPLIB["custom_save_handler"]) ? "_custom" : "")
                           . ".inc");
...

since 'custom_save_handler' is set to false by default, does that mean
that this will use Teo's class (php/session/session4.inc) by default? in
order to use your custom class with phplib's CT_xxx, custom_save_handle
have to be set to true?

what about using this under php3? the file in php/session/session3.inc is
different than the 7.2c session.inc file. which file should i use if my
app was to be used for both php4 or php3? should i use
php/session/session3.inc or session.inc from phplib-7.2c?

>
> TTT> for instance, there seems to be 2 user4.inc files and v4.0 session files
> TTT> in both ./session and ./phplib-4.
>
> The Brian's user4 is in the php/phplib4. Mine in the php/. I wrote
> this because the old user class is not compatible with my Session
> variant because of the changes in serialize() and thaw(). I also
> rewrote serialize() and thaw() in the user4 to make it work a lot
> faster under php4.
>
> TTT> in addition, the files in phplib/stuff seems to be outdated. the sql
> TTT> table schemas in v 7.2c seem to be more up to date. i'm just wondering why
> TTT> everything in cvs is so scattered.
>
> The work on merge PHPLib into PEAR should be done in this year. Some
> stuff from the CVS will migrate to PEAR, some won't.
> I doubt that all the stuff in the CVS are of production quality. E.g.,
> db stuff is in the mess. You need to use stable release (currently
> 7.2c). It also could contain bugs (I guess there should be some
> analyses of the bugs discovered lately), but I don't think they are
> critical. You can use new Session classes for PHP4, of course, they
> should work with other PHPLib 7.2c parts.
>
>
> --
> Best regards,
> Maxim Derkachev mailto:kot <email protected>
> Symbol-Plus Publishing Ltd.
> phone: +7 (812) 324-53-53
> http://www.Books.Ru -- All Books of Russia
>  
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>