Unknown named parameter $sessionhandler
Open
Nobody has claimed this yet.
bug
Extension: session
good first issue
- Dominant language
- XML
- Stars
- 596
- Forks
- 890
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 55
Description
Description
The following code:
https://3v4l.org/p72ZV
<?php
session_set_save_handler(
sessionhandler: new SessionHandler(),
register_shutdown: true
);
Resulted in this output:
Unknown named parameter $sessionhandler
But I expected this output instead:
Not getting an error when using named parameters with session_set_save_handler().
PHP Version
PHP 8.4.2
Operating System
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the session_set_save_handler() documentation entry and reproduce the linked PHP 8.4.2 example first. Compare the documented parameter names with the behavior shown; done means the entry accurately explains whether the named arguments are accepted and avoids promising a result PHP does not provide.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100