mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
56f90492d6
For rationale, see https://github.com/php/php-src/pull/6787 Extensions migrated in this part: * bcmath * bz2 * calendar * com_dotnet * ctype Closes GH-6797.
27 lines
412 B
PHP
27 lines
412 B
PHP
--TEST--
|
|
bcscale() return value
|
|
--EXTENSIONS--
|
|
bcmath
|
|
--INI--
|
|
bcmath.scale=0
|
|
--FILE--
|
|
<?php
|
|
var_dump((int) ini_get('bcmath.scale'));
|
|
var_dump(bcscale(1));
|
|
var_dump((int) ini_get('bcmath.scale'));
|
|
var_dump(bcscale(4));
|
|
var_dump((int) ini_get('bcmath.scale'));
|
|
var_dump(bcscale());
|
|
var_dump((int) ini_get('bcmath.scale'));
|
|
var_dump(bcscale());
|
|
?>
|
|
--EXPECT--
|
|
int(0)
|
|
int(0)
|
|
int(1)
|
|
int(1)
|
|
int(4)
|
|
int(4)
|
|
int(4)
|
|
int(4)
|