Re: session_regenerate_id(true) by default
| From: | Yasuo Ohgaki | Date: | Thu, 24 Oct 2013 00:05:27 +0000 |
| Subject: | Re: session_regenerate_id(true) by default | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-69821@lists.php.net to get a copy of this message | ||
Hi Rowan,
On Wed, Oct 23, 2013 at 8:55 PM, Rowan Collins <rowan.collins@gmail.com>wrote:
> So raise an E_DEPRECATED if you don't pass the parameter, and document
> that passing true will normally be the desired behaviour. Then in some
> future major version, remove the default value, making it an E_ERROR or
> whatever to omit it.
Making the parameter to required parameter works well.
I like your idea!
I have similar proposal for uniqid()'s more entropy parameter.
Raising E_DEPRECATED works well for uniqid(), also.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net