session.name limitation fix or not fix?
| From: | Yasuo Ohgaki | Date: | Thu, 27 Jun 2013 10:46:03 +0000 |
| Subject: | session.name limitation fix or not fix? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-67934@lists.php.net to get a copy of this message | ||
Hi all,
I was browsing bugs and found old feature request that can be fixed easily.
Request #35703 when session_name("123") consist only digits, should warning
https://bugs.php.net/bug.php?id=35703&thanks=1
session.name cannot be integer like string, since it will be initialized as
"long" key hash while session module trying to find as "string" key hash. I
don't understand why some users are willing to use digits only session
name, but problem is problem.
It's not intuitive, but this limitation is documented.
http://www.php.net/manual/en/function.session-name.php
If any one of you think this should be fix (i.e. Raise error for invalid
session name) I'll fix this. If not, I'll reply as "Won't fix".
Any comments?
--
Yasuo Ohgaki
yohgaki@ohgaki.net