Skip to content

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

Closed
srgoogleguy wants to merge 1 commit into
php:PHP-5.3from
srgoogleguy:Fix
Closed

srgoogleguy wants to merge 1 commit into
php:PHP-5.3from
srgoogleguy:Fix

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 ' '.

@php-pulls

Copy link
Copy Markdown

Comment on behalf of johannes at php.net:

Expected behaviour, see discussion in the bug report.

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.

2 participants