[Phplib-users] Re: [Phplib-core] Bug Smackdown
Brought to you by:
nhruby,
richardarcher
|
From: Maxim D. <max...@bo...> - 2002-07-03 11:21:24
|
Hello Nathan, Wednesday, July 03, 2002, 12:18:02 AM, you wrote: nrh> Also, can someone tell me what *exactly* max's aptches are in the php-lib nrh> cvs tree? I still haven't the foggiest what the frell is missing. Begin nrh> to feel stupid, quite I do. Well, it's a source of many troubles, misunderstanding and tricky "walkthroughs", so I'll try to explain what's exactly going on there. History first. More than a year ago there was a discussion in the list on possibility of adaptation of session class to PHP4 sessions. This brought to us 3 (three!!!) implementations of native sessions with PHPLib API. The first was by Teodor Cimpoesu, who, as he noted, did a quick and dirty hack to show that this is possible. The class was mainly old session class with some parts changed to calls to PHP4 session API, the other parts (storage, SID propagation and such) just commented out. The second was by Barendt Scholtus (excuse me, Barendt, if I misspell), who did the similar job to Teodor, but also changed user.inc and page.inc in the similar way. He named his effort as phplib4, and it remains by that name in the CVS now in the unsup directory. Both implementations just used to be simple and limited wrappers over PHP4 session module, conforming to the PHPLib API. Then, I introduced my session4_custom, which was almost fully rewritten implementation, which was intended not only to conform to the PHPLib (public) API and use native PHP4 session module, but also provided a custom save handler, which used PHPLib's CT_*-style containers as a session data storage, and an interface to the php.ini's session module settings from within the Session class. Session4_custom could not only store data in the CT_* containers (custom save handler), but also use native save handlers - files, mm and so on. Also, because of the incompatibilities of the new session4_custom with the old User class ideology, I introduced the new rewritten User class - User4, which was no longer depend on Session, with compatible public API but very different guts. Prepend.php & page.inc were also changed a bit to reflect the session changes. Then, Ulf Wendel came and said he need clean and working class urgently. He began to hack session4_custom. He splet the Session4_custom class in two parts, the first class with common session API (now in session4.inc), the second with the custom save handler (now in session4_custom.inc), which extended the first. As a result, the Teodor's class had been acquired by the new Session4 class, the session4_custom was simplified, both were put to php-lib/php/session CVS directory, and Barendt's phplib4 moved to unsup directory. So, there's two implementations of PHP4 native sessions in the PHPLib CVS - session4.inc & session4_custom.inc in the php-lib/php/session and phplib4 stuff (I see it in various places), which is not mine. By the way, the docs at Tarique's site concerning PHP4 sessions (http://www.sanisoft.com/phplib/manual/php4_sessions.php ) are all about phplib4. -- Best regards, Maxim Derkachev mailto:max...@bo... IT manager, Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 www.books.ru, www.symbol.ru |