php / php/doc-en

Unknown named parameter $sessionhandler

Open
#4,341 3 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.