Skip to content

Implement 8.6 deprecations - #23074

Draft
Girgias wants to merge 7 commits into
php:masterfrom
Girgias:2026-08-8.6-deprecations
Draft

Implement 8.6 deprecations#23074
Girgias wants to merge 7 commits into
php:masterfrom
Girgias:2026-08-8.6-deprecations

Conversation

@Girgias

@Girgias Girgias commented Aug 5, 2026

Copy link
Copy Markdown
Member

Girgias added 7 commits August 5, 2026 14:56
Comment thread ext/bz2/bz2_filter.c
}
if (Z_TYPE_P(filter_params) == IS_OBJECT) {
php_error_docref("filters.compression", E_DEPRECATED,
"Deprecated: Passing an object for filter parameters for bzip2.decompress is deprecated, call get_object_vars() first instead");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think "Deprecated:" should be in the message here. This is prepended because a E_DEPRECATED error is generated. Now it says "Deprecated:" twice:

Deprecated: stream_filter_append(): Deprecated: ...

Comment thread ext/mbstring/mbstring.c
ZVAL_STR(orig_var, ret);
} else if (Z_TYPE_P(var) == IS_ARRAY || Z_TYPE_P(var) == IS_OBJECT) {
if (Z_TYPE_P(var) == IS_OBJECT) {
php_error_docref(NULL, E_WARNING,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this be E_DEPRECATED instead of E_WARNING?

function nl_langinfo(int $item): string|false {}
#endif

#[\Deprecated(message: "Function strcoll() is deprecated, use Collator::compare() instead", since: "8.6")]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It seems that the text "Function strcoll() is deprecated (since 8.6)" is generated elsewhere, and this should only contain "use Collator::compare() instead".

function floatval(mixed $value): float {}

/** @alias floatval */
#[\Deprecated(message: "Function doubleval() is deprecated, use floatval() instead", since: "8.6")]

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.

Suggested change
#[\Deprecated(message: "Function doubleval() is deprecated, use floatval() instead", since: "8.6")]
#[\Deprecated(message: "use floatval() instead", since: "8.6")]

The first part is implied. Ditto for the others.

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.

3 participants