1--TEST--
2bcscale() return value
3--SKIPIF--
4<?php if(!extension_loaded("bcmath")) print "skip"; ?>
5--INI--
6bcmath.scale=0
7--FILE--
8<?php
9var_dump((int) ini_get('bcmath.scale'));
10var_dump(bcscale(1));
11var_dump((int) ini_get('bcmath.scale'));
12var_dump(bcscale(4));
13var_dump((int) ini_get('bcmath.scale'));
14var_dump(bcscale());
15var_dump((int) ini_get('bcmath.scale'));
16var_dump(bcscale());
17?>
18--EXPECT--
19int(0)
20int(0)
21int(1)
22int(1)
23int(4)
24int(4)
25int(4)
26int(4)
27