Skip to content

Apostrophe modifier in *printf is broken Bug #61532 - #47

Merged
srgoogleguy merged 0 commit into
php:PHP-5.3from
srgoogleguy:PHP-5.3
Apr 9, 2012
Merged

srgoogleguy merged 0 commit into
php:PHP-5.3from
srgoogleguy:PHP-5.3

Conversation

@srgoogleguy

Copy link
Copy Markdown
Contributor

This is a fix for Bug #61532.

Expected result was that printf/sprint does not change the custom padding modifier after it has been clearly specified as '.' with a 0 in printf("%'.09"); // for example. The suggested fix is to prevent the padding modifier from being overwritten by doing an extra check that it is still not the default initialized value of ' '.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant