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

Unknown named parameter $sessionhandler #4341

Open
JayQ1982 opened this issue Dec 25, 2024 · 1 comment
Open

Unknown named parameter $sessionhandler #4341

JayQ1982 opened this issue Dec 25, 2024 · 1 comment
Labels
bug Documentation contains incorrect information Status: Needs Triage

Comments

@JayQ1982
Copy link

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

@JayQ1982 JayQ1982 added bug Documentation contains incorrect information Status: Needs Triage labels Dec 25, 2024
@iluuu1994
Copy link
Member

Named parameters are not supported for alternative prototypes. This is mentioned on various documentation pages, we may add it here too.

@iluuu1994 iluuu1994 transferred this issue from php/php-src Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Documentation contains incorrect information Status: Needs Triage
Projects
None yet
Development

No branches or pull requests

2 participants