ext/intl: Fix argument position for uninitialized calendar arguments#22079
ext/intl: Fix argument position for uninitialized calendar arguments#22079LamentXU123 wants to merge 1 commit into
Conversation
|
can you chewck if there no other cases like this ? |
I am quite sure there are no other similar thing near. But as the whole code base is using the same practice in argument position there may be more similar bugs in different areas... Ideally, we shouldn't use those logic at the beginning /_ \ |
|
ok ... give it a bit of time ... a bug but not an awful one, I ll come it in the following days. |
I am wondering if I can merge those little fixes myself so it might make thing easier to you. But I don't sure how to get commit right of this repo. |
|
not entirely up to me (and I would say it might be a bit early for you to get access IMO). |
Found when looking at the code base.
IntlCalendar::equals(),IntlCalendar::before(),IntlCalendar::after(), andIntlCalendar::isEquivalentTo()currently report the second parameter position used by the procedural API, even when called as methods. That is, the argument position will be error by -1.Resulted in:
But I expeected:
See https://3v4l.org/tQdYo#v8.4.18
Ah, ideally in the future maybe we can refactor this whole parameter logic.