Doc #76413 [NEW]: session_name() documentation is wrong

From: Date: Tue, 05 Jun 2018 09:49:55 +0000
Subject: Doc #76413 [NEW]: session_name() documentation is wrong
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15738@lists.php.net to get a copy of this message
From:             tony at marston-home dot demon dot co dot uk
Operating system: 
PHP version:      7.2.6
Package:          Session related
Bug Type:         Documentation Problem
Bug description:session_name() documentation is wrong

Description:
------------
The manual page for session_name() has recently been updated to include
the following:

"When new session name is supplied, session_name() modifies HTTP cookie
(and output contents when session.transid is enabled). Once HTTP cookie
is sent, session_name() raises error."

I have run several tests, and I cannot see this behaviour, nor has it
ever been the behaviour in all past versions of PHP.

Changing the session name does not create or modify any cookies. Session
cookies are only created with session-start() and modified with
session_regenerate_id().

It is also possible to create a cookie before calling
session_name('newname') without any error.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=76413&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=76413&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=76413&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=76413&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=76413&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=76413&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=76413&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=76413&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=76413&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=76413&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=76413&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=76413&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=76413&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=76413&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76413&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=76413&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=76413&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=76413&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76413&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=76413&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=76413&r=mysqlcfg



Thread (8 messages)

« previous php.doc.bugs (#15738) next »