Doc #79609 [NEW]: Warning in session_create_id Example #1
| From: | software_onbekend at hotmail dot com | Date: | Sun, 17 May 2020 20:46:35 +0000 |
| Subject: | Doc #79609 [NEW]: Warning in session_create_id Example #1 | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-17592@lists.php.net to get a copy of this message | ||
From: software_onbekend at hotmail dot com
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Warning in session_create_id Example #1
Description:
------------
---
From manual page: https://php.net/function.session-create-id
---
Warning: session_create_id(): Failed to create new ID in index.php on
line 20.
Generating new session id is not allowed when the session is already
started.
Also at line 16, the if statement need an integer because the output of
session_status is an integer.
https://www.php.net/manual/en/function.session-status.php
Can the documentation for the "session-status" also be updated with the
integer return values?
The example also uses "session_commit()", this is an alias of
"session_write_close", wouldn't it be better to use
"session_write_close" instead of "session_commit" ?
https://www.php.net/manual/en/function.session-commit.php
Have a nice day
--
Edit bug report at https://bugs.php.net/bug.php?id=79609&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79609&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79609&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79609&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79609&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79609&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79609&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79609&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79609&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79609&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79609&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79609&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79609&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79609&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79609&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79609&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79609&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79609&r=mysqlcfg