-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Drop I length modifier from snprintf as it is unused #5089
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
Conversation
Test failures unrelated |
I believe these are there for Windows compatibility. Just to confirm @cmb69, these modifiers are no longer used if people use standard |
Well, I don't see any Windows specific problem with removing support for that modifier, but wouldn't that possibly affect external extensions? |
Well as all internal changes it could affect external extensions but shouldn't those be using the relevant macros, instead of the |
@Girgias yes, they should use the macros; I don't know if they do, though. |
Meh, could always provide the grep regex so people can check but this is one of the discrepancies with the standard snprintf function. So I wouldn't expect that many people to use an unofficial one. But maybe need to check PECL extensions? |
@Girgias, thinking about it, that shouldn't be a real issue for a major version (if documented). |
Adding a note to UPGRADING.INTERNALS seemed obvious, not sure how I should formulate it however, maybe provide a link to the relevant macros? (which I'm not exactly sure where they are located) |
Lines 57 to 61 in 691880b
|
Thanks, so no objections for me to merge this with a note in UPGRADING.INTERNALS? |
Basing myself from the results of: https://gist.github.com/Girgias/b9a2b9926190630d433c84da0ef1b002 which indicate that the I (capital i) length modifier is unused, moreover it's not a C99 length modifier.