Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning PHP5014: session_regenerate_id() expects 0 parameter(s), 1 given #1071

Open
matbech opened this issue Oct 8, 2022 · 1 comment
Open

Comments

@matbech
Copy link
Contributor

matbech commented Oct 8, 2022

Incorrect warning issued for session_regenerate_id:
warning PHP5014: session_regenerate_id() expects 0 parameter(s), 1 given

 public function regenerateId($deleteOldSession = true)
    {
        if ($this->sessionExists()) {
            session_regenerate_id((bool) $deleteOldSession);
        }

        return $this;
    }

Reference to php manual:
https://www.php.net/manual/en/function.session-regenerate-id.php

@jakubmisek
Copy link
Member

thank you;

although session_regenerate_id() is not supported by PeachPie (on ASP.NET Core)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants