mirror of
https://github.com/php/php-src.git
synced 2026-04-25 17:08:14 +02:00
eb23c60087
We must not rely on `isdigit()` to detect digits, since we only support decimal ASCII digits in the following processing.
14 lines
312 B
PHP
14 lines
312 B
PHP
--TEST--
|
|
Bug #78878 (Buffer underflow in bc_shift_addsub)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
print @bcmul("\xB26483605105519922841849335928742092", bcpowmod(2, 65535, -4e-4));
|
|
?>
|
|
--EXPECT--
|
|
bc math warning: non-zero scale in modulus
|
|
0
|