Skip to content

Conversation

@cmb69
Copy link
Member

@cmb69 cmb69 commented Sep 6, 2017

This implements https://bugs.php.net/bug.php?id=67855 based on PR #778.

TL;DR: bcsale() now can be called without a parameter to get the current scale value, and returns the old scale value if called as setter.

Note that this would need an entry in UPGRADING.

@krakjoe krakjoe added the Feature label Sep 6, 2017
}

RETURN_TRUE;
RETURN_LONG(old_scale);
Copy link
Member

Choose a reason for hiding this comment

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

Given that this function always returned true, so the return value was meaningless, I'd say this should go into 7.2.

Copy link
Member Author

Choose a reason for hiding this comment

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

@remicollet, @sgolemon Okay to merge into PHP 7.2?

@cmb69
Copy link
Member Author

cmb69 commented Sep 13, 2017

Since this certainly isn't a necessary feature (one can store the bscale value by other means) I think there's no need to hurry, so I'm going to merge into master.

@php-pulls php-pulls merged commit 1650882 into php:master Sep 13, 2017
@cmb69 cmb69 deleted the bcscale-return-old-value branch September 13, 2017 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants