Skip to content

GH-21754: sapi/cli: avoid deprecation messages with --rf and methods#21758

Merged
DanielEScherzer merged 3 commits intophp:PHP-8.4from
DanielEScherzer:cli-reflection-deprecation
Apr 15, 2026
Merged

GH-21754: sapi/cli: avoid deprecation messages with --rf and methods#21758
DanielEScherzer merged 3 commits intophp:PHP-8.4from
DanielEScherzer:cli-reflection-deprecation

Conversation

@DanielEScherzer
Copy link
Copy Markdown
Member

No description provided.

@DanielEScherzer DanielEScherzer linked an issue Apr 14, 2026 that may be closed by this pull request
Comment thread sapi/cli/php_cli.c
Comment on lines +1060 to +1061
object_init_ex(&ref, pce);
zend_call_known_instance_method_with_1_params(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be object_init_with_constructor :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is existing code that I didn't want to touch on bugfix branches, maybe for master though as a follow-up?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a fair point :)

@DanielEScherzer DanielEScherzer merged commit fbd3017 into php:PHP-8.4 Apr 15, 2026
19 checks passed
DanielEScherzer added a commit that referenced this pull request Apr 15, 2026
* PHP-8.4:
  GH-21754: sapi/cli: avoid deprecation messages with `--rf` and methods (#21758)
DanielEScherzer added a commit that referenced this pull request Apr 15, 2026
* PHP-8.5:
  GH-21754: sapi/cli: avoid deprecation messages with `--rf` and methods (#21758)
@DanielEScherzer DanielEScherzer deleted the cli-reflection-deprecation branch April 15, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

notice in php --rf class::method

2 participants