php-src/ext/bcmath/tests/bcscale_variation003.phpt
Max Semenik 56f90492d6 Migrate skip checks to --EXTENSIONS--, p1
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.
2021-03-22 17:51:02 +01:00

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)