|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2014-08-18 13:05 UTC] daverandom@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: daverandom
[2017-09-13 14:06 UTC] cmb@php.net
-Status: Assigned
+Status: Closed
-Assigned To: daverandom
+Assigned To: cmb
[2017-09-13 14:06 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 13:00:01 2025 UTC |
Description: ------------ It's possible to change the scale in use for bcmath functions using bcscale(), but it's not possible to retrieve the current value. ini_get() only returns the default value from php.ini (as it should). Suggested fix would be to make the argument to bcscale() optional, and have it return the old value. Test script: --------------- var_dump(ini_get('bcmath.scale')); var_dump(bcscale(4)); var_dump(ini_get('bcmath.scale')); var_dump(bcscale()); Expected result: ---------------- string(1) "0" int(0) string(1) "0" int(4) Actual result: -------------- string(1) "0" bool(true) string(1) "0" Warning: bcscale() expects exactly 1 parameter, 0 given in /in/UPp6D on line 6 NULL