Session: deprecating create_sid() method and add createSid()?
| From: | Yasuo Ohgaki | Date: | Mon, 17 Mar 2014 09:00:01 +0000 |
| Subject: | Session: deprecating create_sid() method and add createSid()? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-73204@lists.php.net to get a copy of this message | ||
Hi all,
Object interface of session save handler has create_sid() method.
The name should createSid().
Renaming is BC, but createSid() could be added and make session
module to use createSid() when both exists. create_sid() may be
removed in future release.
Since many users would implement update() method and start defining
create_sid() method, it would be preferred to add createSid() in PHP 5.6
to prevent more mess.
I would like to
- Add E_DEPRECATED for create_sid()
- Add createSid()
- If both exists, use createSid()
- Remove create_sid() in future release. (PHP6?)
There is other option.
Since create_sid() method is undocumented, we may remove it, add
createSid() and add UPGRADING note for users using it currently.
http://jp2.php.net/manual/en/function.session-set-save-handler.php
Any comments?
--
Yasuo Ohgaki
yohgaki@ohgaki.net