Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81025 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55293 invoked from network); 23 Jan 2015 06:30:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jan 2015 06:30:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.51 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.51 mail-qa0-f51.google.com Received: from [209.85.216.51] ([209.85.216.51:42916] helo=mail-qa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/92-61273-A6AE1C45 for ; Fri, 23 Jan 2015 01:30:03 -0500 Received: by mail-qa0-f51.google.com with SMTP id f12so4603689qad.10 for ; Thu, 22 Jan 2015 22:30:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=+aV1MyZ0tqN2zmgBAFW21rpqCdesjkOgSzpUwlomYx8=; b=ZkgyR3BoNs3Gp7O5UGwX/VP4qRfgeWwXQxwI6fJaTqgJ1rjcPCnkbDMThszHZTwS7H fpq0U+mRFh+ygCoPgknHFZvCdpzsjG2ELsrTtWbXm6w40K1J+I+hyM+faLAPTpZ2RDj3 CYW8VmsFJsQhcsVHYpczm7rQTtTiV3aj8Y9DKX4cNDBKHvGr79La9CfmYDS5emurQK8H hIoPguodXN4maQ12dh44OkYGxQ+CWxEODpnuQ7nucaPyGlSrccaqqVnOk/fyqf0T9R/h X+vMzxP/ml/m+cpa9Zj/edeKnEG7Vq/DlKGMGsMeD6FQYx7wP40Mc1/aYURl0D3Ob4oA nWdA== X-Received: by 10.229.192.5 with SMTP id do5mr11147192qcb.12.1421994600322; Thu, 22 Jan 2015 22:30:00 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.93.70 with HTTP; Thu, 22 Jan 2015 22:29:20 -0800 (PST) In-Reply-To: <54C1D562.1080402@gmail.com> References: <54C1D562.1080402@gmail.com> Date: Fri, 23 Jan 2015 15:29:20 +0900 X-Google-Sender-Auth: xck4UuKx6n6DlVOSB0HY9RHxpWg Message-ID: To: Stanislav Malyshev Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11337bfc0662fe050d4beb42 Subject: Re: [PHP-DEV] Removing base class from session handler From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11337bfc0662fe050d4beb42 Content-Type: text/plain; charset=UTF-8 Hi Stas, On Fri, Jan 23, 2015 at 2:00 PM, Stanislav Malyshev wrote: > > User script must have access the struct(PS(mod_data)) to extend base > class. > > Can't I extend the base class and then do something in overriding > methods and call parent, or override some methods but not others and > thus have the original methods still work just fine? > User may extend SessionHandler class like class MySession extends SessionHandler {} but user cannot extend base class(SessionHandler) capability because user script cannot access to PS(mod_data). Better way to define user defined session class is to use SessionHandlerInterface*. I would like to discuss interface cleanup, but in different thread. > > > In conclusion, SessionHandler object has no real use except as a toy and > > makes session module complex unnecessary. Since it cannot have real use, > > nobody is using it. Therefore, I would like to remove it. > > I'm not sure, what you actually are proposing to remove? I'm not sure > how you can "remove an object". Could you explain further? I should have written "remove the SessionHandler class". As I wrote, user may extend SessionHandler class. However, defining user session class as class MySession extends SessionHandler {} have no merit. Users must implement required methods to be useful. Interface is there for this purpose. I would like to remove SessionHandler class, but I don't object to have empty SessionHandler class for maximum compatibility. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11337bfc0662fe050d4beb42--