diff options
| author | Stanislav Malyshev <stas@php.net> | 2019-12-16 00:38:54 -0800 |
|---|---|---|
| committer | Stanislav Malyshev <stas@php.net> | 2019-12-16 00:38:54 -0800 |
| commit | a65b8abf2c9702503591d894ddac0b2f046950b6 (patch) | |
| tree | d5032e847df212853f6c17c7d864b816d5638b87 /ext/bcmath/tests | |
| parent | 518a160b65fe1c535dc7e78972ba7428c2a4e197 (diff) | |
| parent | d348cfb96f2543565691010ade5e0346338be5a7 (diff) | |
| download | php-git-a65b8abf2c9702503591d894ddac0b2f046950b6.tar.gz | |
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Fixed bug #78910
Fix #78878: Buffer underflow in bc_shift_addsub
Fix test
Fix #78862: link() silently truncates after a null byte on Windows
Fix #78863: DirectoryIterator class silently truncates after a null byte
Diffstat (limited to 'ext/bcmath/tests')
| -rw-r--r-- | ext/bcmath/tests/bug78878.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/bcmath/tests/bug78878.phpt b/ext/bcmath/tests/bug78878.phpt new file mode 100644 index 0000000000..2c9d72b946 --- /dev/null +++ b/ext/bcmath/tests/bug78878.phpt @@ -0,0 +1,13 @@ +--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 |
