Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73498 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34779 invoked from network); 1 Apr 2014 09:20:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Apr 2014 09:20:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.213.51 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.213.51 mail-yh0-f51.google.com Received: from [209.85.213.51] ([209.85.213.51:32977] helo=mail-yh0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A4/E0-27128-1E48A335 for ; Tue, 01 Apr 2014 04:20:33 -0500 Received: by mail-yh0-f51.google.com with SMTP id f10so8791437yha.10 for ; Tue, 01 Apr 2014 02:20:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cbmgi81jB3ICig4m4Hy7jHhK6MvWyew3//CigaaSewE=; b=epm6GylhqB1i01ekEQDOK2UCXLaW5YIMIZwXcqF1wcqfCFRDhnzmHRHR2GN8LwUB6y Vycf+pJKAGFHJDS2uX17HahHdztEiR6Es7HKgSDhvDfzFgHu5WFusuYYHpIW12oxOUeK Sq0uce9qilJaFZvPqvJ/rKHfP6BNQpuLrw7kY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=cbmgi81jB3ICig4m4Hy7jHhK6MvWyew3//CigaaSewE=; b=T5JWCcZ182xHLSNKE7oWG41tsryQFkOwQM+Ji8Ion+sjNPuCrfU2UepLNboBgTSXPL zc7Mk0OB4JeSJuQ2ZewYKr6fPWRMmnzDWMWteCsQOV0rXvgAdCcTvqMnx0vH+sWmC6Ni i0jWOuoV638IzueGcDILfJGRCldi5FIavavnd3ZJe6yz9oFksakvRfP346L/5v2lSAz2 FW9B0PrOczRl5iUh3wEtc1Ju4yWfX/sgka9tPSmKmkB185gNjrLLFp7RhA6I18BHQqF6 lu+7dd439qYvgJ6VBywq6eDRVrkgCFrG8R1yBdaSD9piUa7kWOGvMGTh12z87y8t12mU VWIg== X-Gm-Message-State: ALoCoQn+eSmflJVLgC45paSrLpRk+x9GI5n8HSKBAwqrJOA0WZUx0SHnQlV30EY45AEJxW0FIsdw MIME-Version: 1.0 X-Received: by 10.236.78.168 with SMTP id g28mr104339yhe.157.1396344030088; Tue, 01 Apr 2014 02:20:30 -0700 (PDT) Received: by 10.170.188.139 with HTTP; Tue, 1 Apr 2014 02:20:30 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 Apr 2014 12:20:30 +0300 Message-ID: To: Yasuo Ohgaki Cc: Julien Pauli , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: session_reset() and session_abort() to send errors From: narf@devilix.net (Andrey Andreev) Hi, >> Well, I just re-checked it and does indeed just call >> php_session_initialize(), so what's the point? Shorthand for >> session_abort() && session_start() ? > > > Yes, it's an API for it. > It's more efficient than user land functions as it requires needless > close and open (and initialization required to open). I'm confused now, does it call open() or does it not? If it doesn't - it's unsafe. If it does - it's unclear, redundant and optimizes by silently discarding already open resources (without properly closing them). Either way, I like efficiency but I also see it as flawed. Cheers, Andrey.