Skip to content

ext/xml: Deprecate xml_set_object() and passing non-callable strings to handlers #15293

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

Merged
merged 5 commits into from
Aug 8, 2024

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Aug 8, 2024

@nielsdos
Copy link
Member

nielsdos commented Aug 8, 2024

On mobile now, but looks like you missed updating some tests, I'll have a look once that's done.

@Girgias
Copy link
Member Author

Girgias commented Aug 8, 2024

Erg, everything was passing locally

Copy link
Member

@nielsdos nielsdos left a comment

Choose a reason for hiding this comment

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

Implementation looks fine, only test + wording remarks

@Girgias Girgias force-pushed the xml-deprecate-set-object branch from 99f0a31 to d228e38 Compare August 8, 2024 18:20
@Girgias Girgias merged commit 25b4696 into php:master Aug 8, 2024
10 of 11 checks passed
@Girgias Girgias deleted the xml-deprecate-set-object branch August 8, 2024 22:37
@jrfnl
Copy link
Contributor

jrfnl commented Aug 11, 2024

@Girgias I'm looking at the "Passing non-callable strings to the xml_set_*_handler() functions is now deprecated." part of the deprecation, in particular with respect to this: "This would also mean to unset a handler the value of null must be used instead of an empty string which is also currently allowed. "

It looks like there are no tests passing an empty string for the handler. And a quick test run also doesn't show a deprecation notice for an empty string as a callback: https://3v4l.org/AdVej/rfc#vgit.master

What am I missing ?

@Girgias
Copy link
Member Author

Girgias commented Aug 11, 2024

It is producing a deprecation notice locally for me.

I am guessing 3v4l.org hasn't pulled the latest master yet.

I added a test.

@jrfnl
Copy link
Contributor

jrfnl commented Aug 11, 2024

@Girgias Thanks for clarifying and adding the test.

And good point about the master on 3v4l being behind. I may just be testing too early. Will check again in a few days.

@jrfnl
Copy link
Contributor

jrfnl commented Aug 12, 2024

FYI: pinged 3v4l about the master branch being behind (in principle it should update daily, so something has probably broken)

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