1--TEST-- 2bcscale() fails with negative argument 3--EXTENSIONS-- 4bcmath 5--INI-- 6bcmath.scale=0 7--FILE-- 8<?php 9echo bcdiv("20.56", "4"); 10try { 11 bcscale(-4); 12} catch (\ValueError $e) { 13 echo \PHP_EOL . $e->getMessage() . \PHP_EOL; 14} 15?> 16--EXPECT-- 175 18bcscale(): Argument #1 ($scale) must be between 0 and 2147483647 19