Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77387 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29165 invoked from network); 20 Sep 2014 15:36:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Sep 2014 15:36:09 -0000 Authentication-Results: pb1.pair.com header.from=florian@margaine.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=florian@margaine.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain margaine.com from 209.85.213.175 cause and error) X-PHP-List-Original-Sender: florian@margaine.com X-Host-Fingerprint: 209.85.213.175 mail-ig0-f175.google.com Received: from [209.85.213.175] ([209.85.213.175:46152] helo=mail-ig0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/46-24334-7EE9D145 for ; Sat, 20 Sep 2014 11:36:08 -0400 Received: by mail-ig0-f175.google.com with SMTP id h18so649006igc.8 for ; Sat, 20 Sep 2014 08:36:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=sTxPVCo8F6NpzTEO3/jjUrWAXS/V/39Vnep3L6rrgVs=; b=BePQONn0zr5wGIlKu8D+VLyDNr0YB/TR3wFZG4i0RDSWTUIv6YblnBqLzFLNlWtsqx E3D9nyt66gpbQagn0KUQPRt6KjhswDqEus31vd5WOJcjwaF+UJrxt2dBexBxGonrLnsh ZL/lTf73lPyMC7hMFiEqDwzR5i/tLOzeq/ghABR2zG466pxpHPQZl+Tg6PrmSo8uRAkd pmFic3nM9yDoFskdXT0L8LEE20acWlAdNrdSwlwSofS/ezSfCyPo1RTYvgFBjbXp+Z3R mTuWltqeZUc34k55QfU/P5QQqETBW9rXrxR7rXHH15X+hlxyRpPpcq0o7yv0L+n6BHvB XyCw== X-Gm-Message-State: ALoCoQl7SzT/k0cokEkVEgYFZRinTR7sydzgRgN519ltKhC1wVdgN7W71cLL3WMqfRZeJ6Ywgpdp X-Received: by 10.42.47.137 with SMTP id o9mr1796884icf.58.1411227364219; Sat, 20 Sep 2014 08:36:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.41.20 with HTTP; Sat, 20 Sep 2014 08:35:44 -0700 (PDT) X-Originating-IP: [89.92.205.106] Date: Sat, 20 Sep 2014 17:35:44 +0200 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=90e6ba614fecbdf2c4050380f936 Subject: [PHP-DEV] Bug #68063: session-related, how to fix it? From: florian@margaine.com (Florian Margaine) --90e6ba614fecbdf2c4050380f936 Content-Type: text/plain; charset=UTF-8 Hi list, I saw this interesting bug: https://bugs.php.net/bug.php?id=68063 Basically, if `session_id('')` is run before `session_start()`, weird things happen. The bug reporter proposes 2 ways to fix this: - `session_start()` should silently fix the situation - or `session_start()` should noisely fail Both solutions look fine to me, but I'm not sure what PHP should do. Should it be resilient and silently fix the situation? Regards, *Florian Margaine* --90e6ba614fecbdf2c4050380f936--