Skip to content

[RFC] Zend: Warn on resource to string conversions #16022

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Sep 24, 2024

RFC: https://wiki.php.net/rfc/warn-resource-to-string

Notes about internals function that need some sort of overhaul:

  • zval_compare() to not be a wrapper around string_compare_function() (and/or refactor php_array_intersect and co)
  • zend_get_callable_name_ex() to return NULL as failure when passing a nonsensical type as a callable
  • Update print_r() to not emit a warning?

@Girgias Girgias force-pushed the resource-to-string-deprecation branch from e9ead96 to 03133ff Compare September 24, 2024 20:29
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.

1 participant