Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57169 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44658 invoked from network); 3 Jan 2012 06:00:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jan 2012 06:00:12 -0000 Authentication-Results: pb1.pair.com header.from=drak@zikula.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=drak@zikula.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zikula.org designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: drak@zikula.org X-Host-Fingerprint: 209.85.214.170 mail-tul01m020-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:54277] helo=mail-tul01m020-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/62-24045-A69920F4 for ; Tue, 03 Jan 2012 01:00:11 -0500 Received: by obcwo10 with SMTP id wo10so13014126obc.29 for ; Mon, 02 Jan 2012 22:00:08 -0800 (PST) Received: by 10.182.113.71 with SMTP id iw7mr43910132obb.68.1325570408172; Mon, 02 Jan 2012 22:00:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.14.227 with HTTP; Mon, 2 Jan 2012 21:59:47 -0800 (PST) Date: Tue, 3 Jan 2012 11:44:47 +0545 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=f46d0447f3c64dcb8304b599699d Subject: SessionHandler class return values From: drak@zikula.org (Drak) --f46d0447f3c64dcb8304b599699d Content-Type: text/plain; charset=UTF-8 I think something is wrong with the SessionHandler class and I dont know if it requires a bug report. According to the documentation at http://www.php.net/manual/en/class.sessionhandler.php the various methods return 0 for success and 1 for failure which is kind of backwards since 0 would normally be evaluated as false and 1 as true. This is in direct contradiction with the current expected behaviour of session_set_save_handler() http://www.php.net/manual/en/function.session-set-save-handler.php which expects true or false return values except for the read handler which should always return a string. What's the deal here? I think the return values really should be true and false for this class, as expected by session_set_save_handler() Regards, Drak --f46d0447f3c64dcb8304b599699d--